[Solutions] Disable the XP Orb lagfest, plz!

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

  1. Offline

    Zothen

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @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

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @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!

    This post has been edited 1 time. It was last edited by Zothen Sep 15, 2011.
  4. Offline

    McSpazzy

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Hmm. I'm on it!
  5. Offline

    McSpazzy

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @Zothen Download

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

    This post has been edited 1 time. It was last edited by McSpazzy Sep 16, 2011.
  6. Offline

    MuisYa

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @McSpazzy Youre the best coder ever, 2nd thread i see you: "Im on it" 20 mins later "*DownloadLink"
  7. Offline

    Zothen

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Nice, what range does it have?
    It does not completly disable xp orb drop, right?
  8. Offline

    McSpazzy

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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)

    This post has been edited 3 times. It was last edited by Zothen Sep 15, 2011.
  10. Offline

    stybbe

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
  11. Offline

    Switch0r

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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

    This post has been edited 2 times. It was last edited by Switch0r Sep 16, 2011.
  12. Offline

    MuisYa

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @Switch0r Let me try to decompile it, and add permissions...
  13. Offline

    Switch0r

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Thank you very much.
    If we just could disable the exp orbs
  14. Offline

    MuisYa

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @Switch0r Eeehm, i dont think that is possible yet... Nope it isnt...
    Im making PermissionsBukkit support right now.
  15. Offline

    Switch0r

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    And can you fix that error also ? Thanks
  16. Offline

    McSpazzy

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @Switch0r did you use the command from the console?
  17. Offline

    worstboy32

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I just had an idea of how to disable them. I'm on it!
  19. Offline

    VitalViper

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Im eagerly awaiting your work McSpazzy!
  20. Offline

    worstboy32

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    GREAT!! Cant wait :D
  21. Offline

    McSpazzy

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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. Offline

    worstboy32

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    you sir saved me.
  24. Offline

    McSpazzy

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
  25. Offline

    Raider

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    hmmm. just to through it out there... how about make it remove all orbs on an entity death?
  26. Offline

    worstboy32

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
  27. Offline

    McSpazzy

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @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.
  28. Offline

    Raider

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    ahh fair enough, still, awsome job ^^ your still a life saver haha
  29. Offline

    MuisYa

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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.
  30. Offline

    MuisYa

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Aaah lol, it got already made. Too late hahahaha.
    Let me check youre code :3

Share This Page