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): chaosjmaker@gmail.com 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.
-
View User Profile
-
Send Message
Posted Oct 11, 2012@DKL98
Whilst running this on my server I realised the messages lacked colour. What colour would you like the [@Feed Twitter] to be? Can be multiple colours, also do you want me to change the format of it? Maybe [Twitter] Feed: Time: Tweet? Or even just remove the time.
-
View User Profile
-
Send Message
Posted Oct 9, 2012Thanks for making this plugin off of the forum post I posted, much appreciated!
Thanks, DKL98
-
View User Profile
-
Send Message
Posted Sep 13, 2012@zenyl
Hmm this error is very strange, I'm currently running Java 7 update 7 and using the most recent JDK and do not get this error. I shall try and get a friend to compile and see if it fixes things.
-
View User Profile
-
Send Message
Posted Sep 13, 2012I just downloaded the newest version of JAVA, http://www.java.com/en/download/inc/windows_upgrade_xpi.jsp , and I'm getting this error:
12:46:34 [SEVERE] Could not load 'plugins\TwitterBooks.jar' in folder 'plugins' org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError : me/rrama/TwitterBooks/TwitterBooks : Unsupported major.minor version 51.0 at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j ava:155) at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager. java:305) at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager .java:230) at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:222) at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:198) at net.minecraft.server.ServerConfigurationManagerAbstract.<init>(Server ConfigurationManagerAbstract.java:50) at net.minecraft.server.ServerConfigurationManager.<init>(SourceFile:11)
at net.minecraft.server.DedicatedServer.init(DedicatedServer.java:105) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:378) at net.minecraft.server.ThreadServerApplication.run(SourceFile:539) Caused by: java.lang.UnsupportedClassVersionError: me/rrama/TwitterBooks/Twitter Books : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(Unknown Source) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$000(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader. java:44) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader. java:29) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j ava:144) ... 9 more
Also, I made it check weather or not I am using the current version of Java, and replied: "You have the recommended Java installed (Version 7 Update 7)."
-
View User Profile
-
Send Message
Posted Sep 10, 2012@Janomine
I have no idea what that is or what caused that. Like Lones said, post the stacktrace error.
-
View User Profile
-
Send Message
Posted Sep 10, 2012@Janomine
Post your stack trace please (console log).
-
View User Profile
-
Send Message
Posted Sep 10, 2012When i start the plugin i get an error, invalid miror version .
im using Java 7
-
View User Profile
-
Send Message
Posted Sep 9, 2012@GeniusName3
Yes, yes you can. (may want to wait till the next version (v2.0) is approved by Bukkit)
-
View User Profile
-
Send Message
Posted Sep 9, 2012So it can put twitter posts into books?Sounds cool.I can make Amanda Bieber be hated on my server!
-
View User Profile
-
Send Message
Posted Sep 9, 2012@Samkio A new version has been released. I also tested it with your feed and all seems well.
@zenyl
Update your Java to the latest version. This problem isn't to do with the plugin. (Unless a new version of Java just came out breaking it :p)
@devoureroflint
Dammit Lones I asked you to word it better, I was tired and that isn't very clear. Basically, you can make a video for this plugin if you want but it may not be too interesting. Also, I have made like classic Zombies in SMP and am in the progress of doing Lava Survival (plugins not for public release). If you'd like a sneak peek at them and then decide if you want to film some of it when they are public release. (don't really want people begging to get beta-tester, before it is un-whitelisted). It just will probably make for better footage.
-
View User Profile
-
Send Message
Posted Sep 9, 2012@devoureroflint
I'm using 1.3.1, yes. Or, at least, that's what it says, when I start up the server.
-
View User Profile
-
Send Message
Posted Sep 8, 2012@zenyl
Are you on Craftbukkit 1.3.1? It may or may not work on 1.3.2 yet.
-
View User Profile
-
Send Message
Posted Sep 8, 2012The project shows good promise so far. Keep it up guys ;)
-
View User Profile
-
Send Message
Posted Sep 8, 2012The plugin sounds amazing; A way of checking twitter feeds in-game! :D However, when dumped into the plugins folder, I get this error message, when I try to start the server:
15:47:09 [SEVERE] Could not load 'plugins\TwitterBooks.jar' in folder 'plugins' org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError : me/rrama/TwitterBooks/TwitterBooks : Unsupported major.minor version 51.0 at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j ava:155) at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager. java:305) at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager .java:230) at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:222) at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:198) at net.minecraft.server.ServerConfigurationManagerAbstract.<init>(Server ConfigurationManagerAbstract.java:50) at net.minecraft.server.ServerConfigurationManager.<init>(SourceFile:11)
at net.minecraft.server.DedicatedServer.init(DedicatedServer.java:105) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:378) at net.minecraft.server.ThreadServerApplication.run(SourceFile:539) Caused by: java.lang.UnsupportedClassVersionError: me/rrama/TwitterBooks/Twitter Books : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(Unknown Source) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$000(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader. java:44) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader. java:29) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j ava:144) ... 9 more
-
View User Profile
-
Send Message
Posted Sep 7, 2012Samkio baba bizi diskoya götür :)
-
View User Profile
-
Send Message
Posted Sep 7, 2012@llamasaylol
Ah yes it's showing Failed URL now. At least it has the right time stamp :P Good luck on the fix!
@devoureroflint
I'll take a look at those plugins cheers. :)
-
View User Profile
-
Send Message
Posted Sep 7, 2012@Samkio
I don't suppose this'll make that great a video, you can do if you want. But I'd recommend doing one on Zombie survival or Lava survival which shall be on a server soon. (not a public plugin) <- From llama
-
View User Profile
-
Send Message
Posted Sep 7, 2012@Samkio
I have done a temporary fix which will display the URL as "Fail URL, this is a bug." I have left a guy called Lonesface with the source to fix the bug properly whilst I'm gone.
-
View User Profile
-
Send Message
Posted Sep 7, 2012@llamasaylol
@iSamkio is what I tried. Haha awesome :P No worries on time delay I look forward to Monday then. May I do a video on this when I can get it to work?
-
View User Profile
-
Send Message
Posted Sep 7, 2012@Samkio
Seems to be a problem with the web page reading. May you please post the URL of the Twitter feed (or just the @Feed argument you used). I am away this weekend so if you reply late I'll be unable to sort it out until Monday :( P.S. Was watching one of your videos on the Tardis plugin about an hour before you posted :P EDIT: I assumed it was your Twitter feed and I have found the problem. If you tag someone in a tweet it does not follow the same format as a normal url.