TwitterBooks
[1.4.7-R0.1] TwitterBooks v4.2
Should be stable for the latest builds, at time of writing 1.5.2.
Features:
- Allows a player to create a Twitter feed in a Written book with a simpleish command.
- Allow configed Twitter feeds to be watched and broadcasted to the server.
- Drag and drop (With reload).
Commands:
- /TwitterBook [@Feed]
Permissions:
- twitter.make - Allows the user to create the book.
Config:
Broadcast Tweets: Toggle: true #Weather you want to listen to the specified channels below and have the broadcasted. Feeds: '@Notch, @Derplin' #The feeds you want to listen to. Separated by a comma and a space. Must start with an @. Check Delay: 1200 #How often to check for updates on the feeds in ticks (20 ticks per second). Multi Tweet Delay: 600 #If there are multiple new tweets at once, how long should the gap between them be?
Change Log:
v4.3
- Uses new tweet formatting. (AGAIN)
v4.2
- Uses new tweet formatting.
- Adds a couple HTML references (see below in bugs).
v4.1
- Uses new BookMeta. Therefore does not rely on CraftBukkit, so should work with future builds for a long time.
- No longer uses codename_b's code.
v4.0
- You can now listen to configured feeds and have them broadcast new tweets to the server.
- Added a config.
v3.0
- Fixed hash tags.
- Fixed problems with some URLs.
- Fixed failed URL text, to display message with just the URL gone.
- Made the failed tweet texts red.
- Displays usage on /TwitterBook
v2.0:
- Feeds tagged in tweets now work and are made bold.
- Safeguard for failed URLs, Tweets and Timestamps.
v1.0:
- Allows a player to create a Twitter feed in a Written book with a simpleish command.
- Permission 'twitter.make' to allow the player to make the book.
- Drag and drop (With reload).
Todo:
- Any suggestions?
Known bugs:
- If the book is opened on creation the operation will fail.
- Some HTML references aren't translated. (E.G. '&' goes to '&').
- If you find any please report them (Include all the usual information).
Disclaimer:
I have not used any ideas or code off other plugins, all the code is made by me and all feature thought up of by me. Please do not copy/steal ideas or code off of me. I can not be held responsible for this plugin causing errors or breaking anything, you are responsible for the safe use of this plugin.
Donations:
If you like the plugin, please consider donating to my community (The Derplin Network): [email protected] On PayPal. In the message please say rrama plugins or something indicating that you are donating because of me. This will inspire me to make more plugins.
Help!! http://prntscr.com/2pzymp No Tweets found!
@BlackNightGaming
Twitter's tweet formatt changed again. If I have time soon, I will update it.
Whenever I open the book... It says "No tweets found"? I tried making a new tweet with the account, redoing the command; all nothing :( Any ideas why?
It's working now anyway, so I'm guessing it was just a fluke :)
@diannetea
Going to guess that it's an I/O Error (only error I told to just print the message in the book), which is thrown at pretty much anything. Unless you can give me the error in the console log I won't be able to fix this.
All I'm seeing with the latest update in a book is the http link to twitter for my feed, no updates
Brand new book
@diannetea
The only thing I can think of is to update the book when they open it (may have to add a minimum amount of time passing since last checks or people will spam opening it). I'll think about it and experiment with some stuff. Please note this feature has been added as the 6th piece of programming on my todo list, so may not be started till next weekend.
Is there any way you could make them auto update? I'm making an alias right now to make it easier for my players
@matthiasvd2 The tasks are not run on the server's main thread so should not cause kippers to other sections of the server.
@Jones988 Books can only be updated by redoing the command. The time is the time between broadcasting tweets (into chat). Hence being under the 'Broadcast Tweets' section. Oh god, just read the config section I'd written before, so ugly... I'ma re-do it now.
Does this lags the sever?
Do the books update? Mine wont update even though I set the ticks to 1200 for one minute.
Thanks, this is perfect!
@diannetea
New build up. I've fully tested it, except broadcasting, but that should not be broken, as no Bukkit code has changed for it. That's the main reason I use it on my server as well, using a book was a cool feature when books came out, but now it seems like a bit of effort to use them for this.
That's okay, the main reason I went with this was it can broadcast them, the books is just like a really awesome bonus :D
@diannetea
Well fixed that little bug, but on testing it appears the layout for tweets has changed, I'll need a little bit of time to try see what's changed.
Thank you! <3
aww.. new error
@diannetea
Plugin incompatible with version of CraftBukkit used, please use the latest build one I release it. Should be soon. This is due to http://forums.bukkit.org/threads/safeguarding-against-unchecked-and-potentially-damaging-plugins.116749/ However the next build will not rely on CraftBukkit so shall be safe for future update for a while. EDIT: Just uploaded newest version, should be downloadable soon.
created ticket for an error :(
@glowface
If the player is holding a written book with the title Twitter, then uses the command /TwitterBook [@Feed], it will override the content of the book with the Twitter feed specified in the command. The second main feature is that the plugin will listen to the feeds set in the config and broadcast the new tweets as they come in (the amount of time between checks for new tweets is configurable).
How does it work?