[Solutions] Disable the XP Orb lagfest, plz!

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

  1. 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. @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!

    @Zothen Download

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

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 19, 2016
  5. Offline

    MuisYa

    @McSpazzy Youre the best coder ever, 2nd thread i see you: "Im on it" 20 mins later "*DownloadLink"
     
  6. Nice, what range does it have?
    It does not completly disable xp orb drop, right?
     
  7. 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.
     
  8. 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)
     
  9. 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
     
  10. Offline

    MuisYa

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

    Switch0r

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

    MuisYa

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

    Switch0r

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

    McSpazzy

    @Switch0r did you use the command from the console?
     
  15. Offline

    worstboy32

    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
     
  16. Offline

    McSpazzy

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

    VitalViper

    Im eagerly awaiting your work McSpazzy!
     
  18. Offline

    worstboy32

    GREAT!! Cant wait :D
     
  19. 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.
     
  20. Offline

    worstboy32

    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
     
  21. Offline

    Raider

    you sir saved me.
     
  22. Offline

    McSpazzy

  23. Offline

    Raider

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

    worstboy32

  25. 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.
     
  26. Offline

    Raider

    ahh fair enough, still, awsome job ^^ your still a life saver haha
     
  27. 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.

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

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 19, 2016
    Switch0r likes this.
  28. Offline

    McSpazzy

    @MuisYa Your code does pretty much the same thing mine does.

    However I used a different way of iterating, and mine does all worlds. =o

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 19, 2016
  29. Offline

    Switch0r

    Thanks for this
     

Share This Page