[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

    Jaiden207

    that will come in handy ;o
     
  3. Offline

    M1sT3rM4n

    Croem last seen Feb. 9.... Fantastic.
     
  4. Offline

    Brettflan

    Yeah, that's the main reason I released unofficial builds in the interim.
     
  5. Offline

    mrgreaper

  6. Offline

    EdGruberman

    I'm just going to say for the record that although this thread is about a Bukkit plugin that allows you to respond to events, being able to come here to read about witty text and watch a video of a guy with a bluetooth and a cat pretty much makes my night.
     
  7. Offline

    SliMeY_G

    Is it possible for you to share your source? Pretty please with a cherry on top :)
     
  8. Offline

    Brettflan

  9. Offline

    SliMeY_G

    Awesome, cheers! Now to teach me some java! hahaha!
     
  10. Offline

    agtwonderbread

    I started receiving this error this am after updating to the latest recommended craftbukkit #493. Any thoughts or ideas? :confused: I love this plugin for the Twitter aspect and there doesn't seem to be a replacement.

    Code:
    07:26:00 [SEVERE] Could not load plugins\ServerEvents.jar in plugins: null
    org.bukkit.plugin.InvalidPluginException
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:80)
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.
    java:129)
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
    .java:94)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:59)
            at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
            at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
            at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: java.lang.NoSuchMethodException: org.bukkit.croemmich.serverevents.Se
    rverEvents.<init>()
            at java.lang.Class.getConstructor0(Unknown Source)
            at java.lang.Class.getConstructor(Unknown Source)
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:75)
            ... 8 more
    *EDIT*

    Grabbed Brettflan's updated version from the page before and all seems to be well! Thanks!
     
  11. Offline

    M1sT3rM4n

    Server Events really met me down :( Thanks Brett
     
  12. Offline

    mrgreaper

    lol me and i believe my cat are happy to have made your night chap
     
  13. Offline

    GhostToast

    is there a way to enable this to run if you don't seem to have command line access? I am hosted on MyMCserv, which is pretty good but i only get craftbukkit's command line interface. would love to output data to my website in a live fashion...
     
  14. Offline

    Brettflan

    You shouldn't need command-line access (I assume you mean Shell/SSH or similar). As long as you can edit the plugin's server_events.xml file to suit your needs, it should work fine.
     
  15. Offline

    GhostToast

    where do i get those secret keys and whatnot?
     
  16. Offline

    Brettflan

    I don't know, read through the thread and you'll probably find something helpful. Or, maybe someone else can help you. I don't actually use those features myself, I only use the death messages echoed to everyone.
     
  17. Offline

    sablednah

    hmm - I know this will be complex - but anyway of linking it to a twitlonger style service to stop the annoying error when messages are >140 characters long?

    In fact a quick 5 mins google hasn't turned up anything amazing api-wise - so maybe just split the tweet into multiple tweets?
     
  18. Offline

    mrgreaper

    do step 4 of the first post on your home pc it will give you the secret code etc
    trust me it will work our server is not on my pc but thats the way i did it :)

    just glad Brettflan is keeping it all uptodate (your a godsend chap!)
     
  19. Offline

    Brettflan

    Just as a heads up, I know that the latest dev builds of CraftBukkit break this plugin. I'll release another update when the next Recommended Build is set.
     
  20. Offline

    Brettflan

    http://wimbli.com/minecraft/ServerEvents_1.3.4_unofficial.zip

    Changelist:
    • updated to work in RB 600/602
    • added mrgreaper's additional messages to default config
    • fixed Twitter message trimming algorithm to correctly trim down to 140 characters

    There's already code in place to chop the message down to 140 characters if it's longer than that, but the math was flawed. It should be fixed in 1.3.4.
     
  21. Offline

    Brettflan

    And another, to support RB 612+:
    http://wimbli.com/minecraft/ServerEvents_1.3.5_unofficial.zip

    Croemmich had the plugin's namespace in org.bukkit and the Bukkit devs just finished sealing that, so I just had to change the namespace. So... no changes you'd notice, only internal restructuring.

    EDIT: considering Croemmich hasn't even logged in to the forum in close to 2 months, I'll see about officially adopting this plugin once it hits the 2 month mark.
     
  22. Offline

    mrgreaper

    your a star! thought with the coming of 1.4 twitter would be lost
     
  23. Offline

    croemmich

    Sorry I had to abandon... college got the best of me. Thanks Brettflan for keeping it alive. It's all yours.
     
  24. Offline

    Brettflan

    Along with OnlineUsers, Croemmich has officially transferred control of this plugin to me to maintain, so... that I shall do.

    I've tested 1.3.5 as working in RB 670, though I noticed that death by Ghast fireball is being reported as a creeper. I'll post an update for that in the next few days.
     
  25. Offline

    mrgreaper

    good to know :), im updating my server at mo and when ever theres an update that breaks plugins i fear losing this one!
     
  26. Offline

    Brettflan

    Updated to 1.3.6.
    • Fix for deaths by ghast fireball explosions being reported as death by creeper explosion; they're now reported as death by ghast
     
  27. Offline

    Brettflan

    By the way, just to share, these are the death messages I'm using on my server:
    Code:
        <death enabled="true">
            <msg>%n was killed by %killer with a %killer_item.</msg>
            <msg>%n was just shown by %killer how painful a %killer_item can be.</msg>
            <msg>It's OK %killer, I'm sure %n had it coming. Did you have to use a %killer_item, though?</msg>
            <msg>%killer should learn to play nicely with others, just ask %n.</msg>
            <msg killer="zombie">Poor zombie, it nearly choked on %n.</msg>
            <msg killer="zombie">Uh oh, %n! I don't think that zombie wanted to dance.</msg>
            <msg killer="zombie">A zombie was just seen playing with its food, namely %n.</msg>
            <msg killer="skeleton">%n just got killed by a skeleton.</msg>
            <msg killer="skeleton">If I were %n, I would hunt that skeleton down.</msg>
            <msg killer="skeleton">%n got in some target practice with a skeleton. The skeleton enjoyed having an easy target.</msg>
            <msg killer="falling">They say the trick to flying is to throw yourself at the ground and miss... well, %n didn't miss.</msg>
            <msg killer="falling">Is it bird? Is it a plane? *SPLAT* Oh, it was %n.</msg>
            <msg killer="falling">The ground was apparently farther away than %n thought it was.</msg>
            <msg killer="falling">%n forgot to hold the Shift key while looking over a drop.</msg>
            <msg killer="burning">%n burned to death.</msg>
            <msg killer="burning">We don't need no water, let %n burn!</msg>
            <msg killer="burning">%n is extra crispy.</msg>
            <msg killer="burning">Presenting %n, the human torch!</msg>
            <msg killer="lava">It seems that %n just found lava the hard way.</msg>
            <msg killer="lava">Doesn't %n know that dying in lava is a good way to lose everything? Ouch.</msg>
            <msg killer="lava">%n, did you mean to go for a swim in lava?</msg>
            <msg killer="lava">Lava is the red hot stuff, %n. It's generally not advisable to stand in it.</msg>
            <msg killer="drowning">%n sleeps with the fishes.</msg>
            <msg killer="drowning">%n stayed underwater for just a little too long.</msg>
            <msg killer="drowning">Apparently %n forgot that he couldn't breathe water.</msg>
            <msg killer="drowning">Knowing how to stay afloat in water is important, just ask %n.</msg>
            <msg killer="suffocation">It's true, isn't it, %n? Sand does get everywhere.</msg>
            <msg killer="suffocation">%n has just been entombed.</msg>
            <msg killer="suffocation">No need to bury %n, he's thoughtful enough to have done it for himself.</msg>
            <msg killer="spider">%n can now add arachnophobia to his list of ailments.</msg>
            <msg killer="spider">Spiders are a bit of a pest, just ask %n.</msg>
            <msg killer="spider">%n has just found out that it's not advisable to try stomping on spiders in Minecraft.</msg>
            <msg killer="spider">Spiders really can jump, right %n?</msg>
            <msg killer="creeper">Don't touch that creeper, %n! Damn, you just made a real mess.</msg>
            <msg killer="creeper">%n just hugged a creeper.</msg>
            <msg killer="creeper">A creeper just sent %n off with a bang.</msg>
            <msg killer="creeper">It's ok, %n, you got your revenge. The creeper went bye bye, too.</msg>
            <msg killer="contact">Tree huggers should not hug cactii, should they, %n?</msg>
            <msg killer="contact">Make a mental note, %n... cactii are painful.</msg>
            <msg killer="contact">%n, I'm sure the cactus was just as scared of you as you were of it.</msg>
            <msg killer="contact">What's green and pointy and has bits of %n stuck to it? A cactus!</msg>
            <msg killer="ghast">Invisible fireballs kind of suck, don't they, %n?</msg>
            <msg killer="ghast">Poor %n. Don't ghasts know that spitting is nasty?</msg>
            <msg killer="ghast">%n didn't do a good enough job of dodging ghast fireballs.</msg>
            <msg killer="pigzombie">Did you annoy the pig-zombies, %n? They do have swords, as you found out.</msg>
            <msg killer="pigzombie">%n just got an unfriendly greeting from some pig-zombies.</msg>
            <msg killer="pigzombie">Come on, %n. Pig-zombies aren't that bad.</msg>
            <msg killer="explosion">I think %n was a bit too close to that TNT.</msg>
            <msg killer="explosion">The instructions said to light the fuse and get away, but %n messed up the second part.</msg>
            <msg killer="explosion">TNT is not a toy, %n.</msg>
            <msg killer="explosion">You've got to love how indiscriminate TNT is, right %n?</msg>
        </death>
    I basically just trimmed them down to 3-4 per death type, including a few new ones of my own, and cleaned up the spelling and grammar.
    I'll have to swap out that first ghast message when that bug gets fixed by Mojang. :)
     
  28. Offline

    deltahat

    Could you add a feature that allows me to add an offset to the time and change the timezone? The shared server I am on has its time way off and there is nothing I can do. Tweets from the server have wonky times.
     
  29. Offline

    Brettflan

    Should be doable without too much trouble. I'll see about adding that option in the next few days when I have time to set aside for it.
     
  30. Offline

    Brettflan

    That really is more of a Factions request rather than something that might be added to ServerEvents.

    By the way, I haven't forgotten the Twitter timezone offset option, I've just been rather busy lately. I'll get to it eventually, but it'll probably be at least a week at this point.
     
  31. Offline

    Phat32

    I just found and love this plugin. Only question is how do I turn off the time stamp on the tweet?
     

Share This Page