[INFO] ServerEvents 1.5.2 - Replace TwitterEvents, DeathNotify [BukkitDev]

Discussion in 'Archived: Plugin Releases' started by Brettflan, Jan 24, 2011.

  1. Offline

    Brettflan

    harakiwi, dark_hunter, cfultz and 2 others like this.
  2. Offline

    dougdashwitz

    My apologies if this has already been covered, however i peered through and did not see my issue.

    For some reason, the random messages are not being displayed... but wierdly enough... the join/quit messages are shown. No errors show in the server window.

    Are there any permissions that need to be set, or perhaps i missed a line in the config? Or maybe there is an issue with the plugin and my server?

    Also, a bit of a sidenote... Mayhaps you can post a commands list in a spoiler tab? and maybe move the install instructions and developer info to spoiler tabs as well? It helps clean up the first post and make things easier to find since a wiki might be a bit excessive for a simple yet effective plugin such as this

    LOVE the plugin, Keep up the Great work
     
  3. Offline

    Brettflan

    Sorry, but not likely. I don't even use the Twitter functionality myself, so new features related to Twitter are pretty much not going to happen (unless someone else codes and submits them, as the source is available).

    If this line is configured properly, you should be getting them. Make sure enabled="true" and whatever you want it being sent to is also set to true (file, chat, twitter, or database).
    Code:
    <random enabled="true" file="false" chat="true" twitter="false" database="false" delay="3600000">

    There are no permissions or commands. All configuration is in server_events.xml.
     
  4. Offline

    tha d0ctor

    Any chance this will ever include Facebook support? I made a pact with myself years ago I would never create a twitter account, I have stayed true to my word!
     
  5. Offline

    Brettflan

    No chance, unless somebody else were to add it to the provided source. So, effectively, no chance.
     
  6. Offline

    Mr_H4mm3r

    Maybe add support for spout and show some Achivement signs when the owner post on the server's twitter??
     
  7. Offline

    Brettflan

    Doubtful, I don't have much free time lately to do more than simply maintain the plugin in a working state.
     
  8. The download links are down. Got his error code:
    Code:
    Ein Fehler ist während einer Verbindung mit cr-wd.com aufgetreten.
    
    SSL hat einen Eintrag erhalten, der die maximal erlaubte Länge überschritten hat.
    
    (Fehlercode: ssl_error_rx_record_too_long)
     
  9. Offline

    Brettflan

    For mysql-connector-java-bin.jar and twitter4j-core.jar? Yeah, those links appear to be down. Updated with new links for those.
     
  10. Offline

    Legionarius

    Could you add another "tips" type message category? The reason I ask is that I have need of more than one random pool of messages, the more I add. Some "announcements" etc should be drawn from their own pool, rather than lumped in with general server tips. Would this be possible?
     
  11. Doesn't work for me, still redownloaded. If i try to run the jar, this error code pops up:
    Code:
    Exception in thread "main" java.lang.NoClassDefFoundError: twitter4j/http/RequestToken
     
  12. Offline

    Brettflan

  13. This file works, thank you. Awesome plugin!
     
  14. Offline

    Brettflan

    All right, I've updated the official version of it to that one.

    Also, confirmed a bug caused by a recent Bukkit update, and released 1.3.8 to fix it:
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 6, 2016
  15. Offline

    Darcion

    lol under your link is 1.3.7.zip,

    i copied the text into browser that worked for me.
     
  16. Offline

    Brettflan

    Hah, oops. :p
     
  17. Offline

    Iyeman

    Trying to get the Twitter tokens, have tried on 4 different pc's all the various twitter4j's in this thread and still get this error

    C:\serverevents>java -jar serverevents.jar​
    Exception in thread "main" java.lang.NoClassDefFoundError: twitter4j/TwitterExce​
    ption​
    Caused by: java.lang.ClassNotFoundException: twitter4j.TwitterException​
    at java.net.URLClassLoader$1.run(Unknown Source)​
    at java.security.AccessController.doPrivileged(Native Method)​
    at java.net.URLClassLoader.findClass(Unknown Source)​
    at java.lang.ClassLoader.loadClass(Unknown Source)​
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)​
    at java.lang.ClassLoader.loadClass(Unknown Source)​
    Could not find the main class: com.wimbli.serverevents.Register. Program will ex​
    it.​


    Any ideas for me to try?
     
  18. Offline

    Demon Boy

    Ok I need help with this one step: To enable Twitter, run java -jar ServerEvents.jar from the command line.

    I'm using rented online space to host my server at the moment, so to access my files I use filezilla which means I have no idea how I can make a command line access the Jar when it's on the server. Also I'm slightly over tired so sorry if i'm missing something easy to see
     
  19. Offline

    Demon Boy

    ok my host can run the jar but how do I set up the twitter feed? Do I follow the server somehow through twitter?
     
  20. Offline

    Brettflan

    Honestly, even though I'm the person currently maintaining this plugin, I've never even used the Twitter functionality myself.
    Is there anyone else who uses the Twitter functionality who can help with that?
     
  21. Offline

    Brettflan

    I'll release an update in the next few days which disables the default Minecraft death messages.
     
  22. Offline

    Brettflan

    The new setting can be ignored if you want the default Minecraft death messages added in 1.8 to be disabled. If for some reason you want to have them shown, add this to the <conf> section at the top of server_events.xml with the other main settings:
    Code:
            <preventDefaultMinecraftDeathMessages enabled="false" />
    For the new death types, I've added new default messages for them as well. If you're already using ServerEvents, you can add them to your existing server_events.xml file:
    Code:
            <msg killer="starvation">For only 10 cents a day, we could have saved poor %n from starvation</msg>
            <msg killer="starvation">%n was last seen trying to eat his own fingers</msg>
            <msg killer="starvation">Of all the ways to die in Minecraft, %n managed to starve to death. Bravo.</msg>
            <msg killer="orphanprojectile">Did anyone see what shot %n to death? A true mystery.</msg>
            <msg killer="cavespider">%n can now add arachnophobia to his list of ailments.</msg>
            <msg killer="cavespider">Cave Spiders are a bit of a pest, just ask %n.</msg>
            <msg killer="enderman">%n should have known better than to stare at that enderman.</msg>
            <msg killer="enderman">Jeepers, creepers, that enderman liked %n's peepers.</msg>
            <msg killer="silverfish">%n managed to find a silverfish! Unfortunately, it didn't like being disturbed.</msg>
            <msg killer="silverfish">That silverfish was just too hard for %n to hit.</msg>
     
  23. Offline

    seriosbrad

    I've been getting this error for a while, but there is no config setting for this in the .xml

    [WARNING] plugins/ServerEvents/server_events.xml: 'conf.twitter.timestamp_hour_offset' must an integer between -24 and 24
     
  24. Offline

    Brettflan

    It's defined in the default server_events.xml like so:
    Code:
    <twitter enabled="true" accessToken="{accessToken}" accessTokenSecret="{accessTokenSecret}" rate_limit="350" timestamp_hour_offset="0" />
    I should probably see about making sure it simply defaults to 0 without error if not set.
     
  25. Offline

    mrgreaper

    http://pastebin.com/a60T7zHJ
    This is an updated xml file with a few more lines, makes use of the %n_item on join and exit to declare what the person was holding (certain lines only ofcourse)
    also uses %players in a few lines

    theres still a few %n_item lines in the death lines (which always resault in nothing ie "mrgreaper next time hit the spider with that nothing in your hand" but i dont have time to remove them right now)


    hope you like

    @Brettflan as always you have my full permission to work this into the template either in full or in part (i have made sure the twitter offset is in it ! :) )
     
  26. Offline

    warplayer

    Has anyone figured out a way to get this to work with CraftIRC so I can broadcast server events to my IRC channel through the bot?
     
  27. Offline

    darkcloud784

    Information on this error when I attempt to do
    Code:
    java -jar ServerEvents.jar
    . Would be helpful.


    Code:
    G:\bleh\plugins>java -jar ServerEvents.jar
    Exception in thread "main" java.lang.NoClassDefFoundError: twitter4j/TwitterExce
    ption
            at java.lang.Class.getDeclaredMethods0(Native Method)
            at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
            at java.lang.Class.getMethod0(Unknown Source)
            at java.lang.Class.getMethod(Unknown Source)
            at sun.launcher.LauncherHelper.getMainMethod(Unknown Source)
            at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
    Caused by: java.lang.ClassNotFoundException: twitter4j.TwitterException
            at java.net.URLClassLoader$1.run(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 java.lang.ClassLoader.loadClass(Unknown Source)
            at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            ... 6 more
    
    
    G:\bleh\plugins>pause
    Press any key to continue . . .
    

    also I get this error with twitter4j-core.jar =\

    Code:
    2011-11-18 16:22:16 [SEVERE] Could not load 'plugins\twitter4j-core.jar' in folder 'plugins':
    java.io.FileNotFoundException: Jar does not contain plugin.yml
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:66)
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:215)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:136)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:136)
        at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:112)
        at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigurationManager.java:52)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:136)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:348)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
     
  28. Offline

    Brettflan

    @darkcloud784 The source of both problems looks to be that you have the twitter4j-core.jar file in your plugins folder, instead of the server root folder.
     
  29. Offline

    darkcloud784

    Thx - Question do you know how I would get this to enter the PIN automatically when ran - My server is hosted remotely and I have no idea how to get it to run java -jar ServerEvents.jar then enter the pin on server start/restart
     
  30. Offline

    Brettflan

    Released 1.4.1.
    These are the newly added default death messages, existing users can copy them over into their server_events.xml file:
    Code:
            <msg killer="slime">It's uncommon enough to find a Slime, but %n even managed to be killed by one.</msg>
            <msg killer="slime">%n suffered death by goo. Slimes can be deadly, who knew?</msg>
            <msg killer="blaze">A Blaze burned %n to a crisp.</msg>
            <msg killer="blaze">%n didn't quite dodge enough Blaze fireballs.</msg>
            <msg killer="magmacube">A Magma Cube just squished %n.</msg>
            <msg killer="magmacube">The last thing %n saw was the underside of a Magma Cube.</msg>
            <msg killer="enderdragon">%n didn't impress that EnderDragon with his Dovahkiin impression.</msg>
            <msg killer="enderdragon">%n wasn't prepared to face that EnderDragon after all.</msg>
     
  31. Offline

    SplenectomY

    Your two links for the additional files needed (the ones that go in in the root folder) aren't working. Can you please update the links or mirror them? I love this plugin. Thanks.

    EDIT: Or if anyone can mirror/send them to me, please let me know. Much appreciated.

    EDIT: I found the other two on Google, but it appears the main link for 1.4.1 is not working either (same site).
     

Share This Page