[Solutions] Disable the XP Orb lagfest, plz!

Discussion in 'Archived: Plugin Requests' started by Zothen, Sep 15, 2011.

  1. Offline

    Zothen

    Pretty simple,

    you know the XP Orb Disable class?
    Can somebody plz make that for bukkit to disable those pesky green tribbles?

    thanks alot!
     
  2. Offline

    MuisYa

    @Zothen Jeb on twitter: "Oh i also fixed the 'Experience orb' bug in SMP, did that first today."
    This is already fixed,
     
  3. Offline

    Zothen

    @MuisYa you should be a bit more suspicious about what Mojang is doing - the Orbs are a) still lagging server and b) are a nuisance right now!

    The request for a plugin to disable them is still valid!

    thx gents!
     
  4. Offline

    McSpazzy

    Hmm. I'm on it!
     
  5. Offline

    McSpazzy

    @Zothen Download

    use command /removeorbs to remove all orbs on the ground.
     
  6. Offline

    MuisYa

    @McSpazzy Youre the best coder ever, 2nd thread i see you: "Im on it" 20 mins later "*DownloadLink"
     
  7. Offline

    Zothen

    Nice, what range does it have?
    It does not completly disable xp orb drop, right?
     
  8. Offline

    McSpazzy

    It doesn't disable the drops. Using the command just removes any from the active entity list, so any currently on the ground, anywhere on the server.
     
  9. Offline

    Zothen

    Hm, I prefered a way to completly prevent them but on a 2nd thought your solution seems better, cos on the long term the orbs will be used by other plugins. Nice, testing when a CB build for 1.8.1 is there.

    Oh, Im horribly sorry: Thank you very much for your fantastic work, @McSpazzy ! (Im such an ignorant brat at times, hehe)
     
  10. Offline

    stybbe

  11. Offline

    Switch0r

    How can i set it with permissionsbukkit ?
    It does not work on our server.
    Craftbukkit 1130
    ----
    16:36:21 [WARNING] Unexpected exception while parsing console command
    org.bukkit.command.CommandException: Unhandled exception executing command 'remo
    veorbs' in plugin RemoveOrbs v0.1
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:41)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:16
    3)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:3
    47)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:3
    43)
    at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:499)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:478)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)
    Caused by: java.lang.ClassCastException: org.bukkit.craftbukkit.command.Coloured
    ConsoleSender cannot be cast to org.bukkit.entity.Player
    at com.McSpazzy.RemoveOrbs.RemoveOrbsCommands.onCommand(RemoveOrbsComman
    ds.java:25)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:39)
    ... 7 more
     
  12. Offline

    MuisYa

    @Switch0r Let me try to decompile it, and add permissions...
     
  13. Offline

    Switch0r

    Thank you very much.
    If we just could disable the exp orbs
     
  14. Offline

    MuisYa

    @Switch0r Eeehm, i dont think that is possible yet... Nope it isnt...
    Im making PermissionsBukkit support right now.
     
  15. Offline

    Switch0r

    And can you fix that error also ? Thanks
     
  16. Offline

    McSpazzy

    @Switch0r did you use the command from the console?
     
  17. Is it possibble to disabble them totaly.
    Or make the clearorbs command go automatic when there are xxx orbs on the floor
    Or make it so it clears every xxx time.
    It really produce lag when there are like 10000 on the ground
     
  18. Offline

    McSpazzy

    I just had an idea of how to disable them. I'm on it!
     
  19. Offline

    VitalViper

    Im eagerly awaiting your work McSpazzy!
     
  20. GREAT!! Cant wait :D
     
  21. Offline

    McSpazzy

    Well its not so much disable...I can't find anything that can cancel them existing. Best I can offer is something that runs every minute/few minutes, removing them all.
     
  22. thats good enough :D
    idk if its much work to make but maybe u can make it like droclear.
    u can set a ammount of drops then it clears when it comes over that ammount.
    But time is also good :D
     
  23. Offline

    Raider

    you sir saved me.
     
  24. Offline

    McSpazzy

  25. Offline

    Raider

    hmmm. just to through it out there... how about make it remove all orbs on an entity death?
     
  26. Offline

    McSpazzy

    @Raider The problem there is that the obs are not dropped until after the entity death event is over. So any code called during, wont have any effect.
     
  27. Offline

    Raider

    ahh fair enough, still, awsome job ^^ your still a life saver haha
     
  28. Offline

    MuisYa

    I made this plugin for you guys:
    OrbRemoval:
    • Checks every minut for orbs on ground.
    • Removes them if there are any.
    • World name configurable in config.
     
    Switch0r likes this.
  29. Offline

    MuisYa

    Aaah lol, it got already made. Too late hahahaha.
    Let me check youre code :3
     

Share This Page