[Solutions] Disable the XP Orb lagfest, plz!

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

  1. Offline

    MuisYa

    @McSpazzy I know, i wanted to do all worlds to. But i couldnt get it fixed. Hahahaha!
    I checked yours and i see what i did wrong :<

    You speak dutch? Hahahaha?! .be

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

    worstboy32

    germany is .be else its /nl im dutch :p
    im loving ur plugin spazy we are ussing it and it work good.
    Only some players drop liek 1000 ata time and if its after a clear then it give still lagg for 30 seconds.
    i readed that its hard to amke but if its possibble maybe u could make it togheter cuz pvp servers gonna need it.
    but as i sayd i already love it :D
     
  3. Offline

    VitalViper

    .be is Belgian. Germany is .de.
     
  4. Offline

    MuisYa

    No, its not needed lol. As soon as 1.8.2 comes out, normal minecraft fixes it....
    And @VitalViper is right, .de is Germany (Deutschland)
     
  5. Offline

    worstboy32

    yeah my fault xD
    its de :p
    And yeah this is fine for now thnx alot :D
     
  6. Offline

    po5

    Hey this works great. I want everyone to be able to use the command however. What are the permissions if any? :)
     
  7. Offline

    Switch0r

    He is working on that :)
     
  8. Offline

    MuisYa

    Me? Im not working on that? Want me to?

    I could expand this plugin, so it removes every minut.
    And a command is possible. If someone wants it?

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

    ShaDooM

    MuisYa does it support multiple worlds or can it only remove on one world?
     
  10. Offline

    Clavus

    YESSSSSSSSSSSSSSSSSSSSSSSSSSS

    THANK YOU SO MUCH.

    Installed both the orb removal plugins and my server has instantly come back to life!
     
  11. Offline

    bergerkiller

    I made a plugin called 'NoLagg' in the past, which buffers ALL items being dropped. For example, if a tnt explosion occured it will keep the amount of spawned items per chunk to a minimum. Also, it will make stacks of 'too much' items automatically, so also prevents item Q spammers. Never tested it with orbs, but should work. Also buffers tnt being ignited. If so<Edit by Moderator: Redacted mediafire url>

    Code:
        @Override
        public void onItemSpawn(ItemSpawnEvent event) {
            if (!ItemHandler.handleItemSpawn((Item) event.getEntity())) {
                event.setCancelled(true);
            }
        }
    
        public static int maxTNTIgnites = 40;
        public static int TNTIgnites = 0;
    
        public static void delayedSubtract() {
            plugin.getServer().getScheduler().scheduleSyncDelayedTask(plugin, new Runnable() {
                public void run() {
                    TNTIgnites -= 1;
                    if (TNTIgnites < 0) TNTIgnites = 0;
                }
            }, 20L);
        }
     
        @Override
        public void onEntityExplode(EntityExplodeEvent event) {
            if (event.getEntity() instanceof TNTPrimed) {
                if (TNTIgnites < maxTNTIgnites) {
                    TNTIgnites += 1;
                    plugin.getServer().getScheduler().scheduleSyncDelayedTask(plugin, new Runnable() {
                        public void run() {
                            TNTIgnites -= 1;
                            if (TNTIgnites < 0) TNTIgnites = 0;
                        }
                    }, 20L);
                } else {
                    event.getLocation().getWorld().spawn(event.getLocation(), org.bukkit.entity.TNTPrimed.class);
                    event.setCancelled(true);
                }
            }
        }
    (I still need someone to test this already made plugin, would love some feedback)
     
    Last edited by a moderator: Nov 12, 2016
  12. Offline

    Borch

    So just do scheduler.scheduleSyncTask(plugin, new RemoveOrbsTask(), 1);
     
  13. Offline

    MuisYa

    OrbRemoval 2.0
    • Checks every minut for orbs on the ground.
    • If there are any. They will get removed.
    • Use /removeorbs to remove to.
    • "OrbRemoval.remove" for BukkitPermissions. [Else only OP's]
    • Auto remove, has a configurable world name
    More features? Just ask me.
     
  14. Offline

    Clavus

    Ok now my server crashes about 30 seconds after startup. Even when I disable the orb removal plugins. This sucks HARD.

    Console is throwing out errors like these before it stops responding entirely:
    Code:
    2011-09-17 13:27:44 [SEVERE] java.net.SocketException: Broken pipe
    2011-09-17 13:27:44 [SEVERE]     at java.net.SocketOutputStream.socketWrite0(Native Method)
    2011-09-17 13:27:44 [SEVERE]     at java.net.SocketOutputStream.socketWrite(Unknown Source)
    2011-09-17 13:27:44 [SEVERE]     at java.net.SocketOutputStream.write(Unknown Source)
    2011-09-17 13:27:44 [SEVERE]     at java.io.BufferedOutputStream.flushBuffer(Unknown Source)
    2011-09-17 13:27:44 [SEVERE]     at java.io.BufferedOutputStream.flush(Unknown Source)
    2011-09-17 13:27:44 [SEVERE]     at java.io.DataOutputStream.flush(Unknown Source)
    2011-09-17 13:27:44 [SEVERE]     at net.minecraft.server.NetworkWriterThread.run(SourceFile:104)
    2011-09-17 13:28:29 [SEVERE] java.net.SocketException: Broken pipe
    2011-09-17 13:28:29 [SEVERE]     at java.net.SocketOutputStream.socketWrite0(Native Method)
    2011-09-17 13:28:29 [SEVERE]     at java.net.SocketOutputStream.socketWrite(Unknown Source)
    2011-09-17 13:28:29 [SEVERE]     at java.net.SocketOutputStream.write(Unknown Source)
    2011-09-17 13:28:29 [SEVERE]     at java.io.BufferedOutputStream.flushBuffer(Unknown Source)
    2011-09-17 13:28:29 [SEVERE]     at java.io.BufferedOutputStream.flush(Unknown Source)
    2011-09-17 13:28:29 [SEVERE]     at java.io.DataOutputStream.flush(Unknown Source)
    2011-09-17 13:28:29 [SEVERE]     at net.minecraft.server.NetworkWriterThread.run(SourceFile:104)
    2011-09-17 13:28:37 [INFO] Read timed out
    2011-09-17 13:30:10 [INFO] Read timed out
     
  15. Offline

    MuisYa

    Thats not mine i suppose? Let me test.
     
  16. Offline

    Clavus

    Yeah I have no idea what's causing it since it also occurs without your plugins enabled. Problems is it worked fine with the current plugin setup yesterday.
     
  17. Offline

    MuisYa

    Dude you say it crashes without our plugins in it, and you are blaming them?
    Than our plugins are not causing this? Stfu seriously...
     
  18. Offline

    Clavus

    Yeah but it started occuring AFTER I installed your plugins. My server came back to life, everything looked nice and then... shit crashed. After restart, shit crashed again. Disabled your plugins, server keeps crashing without fail. It must be related to something the plugin changed, or maybe my world is beyond saving (large orb drops in certain spots, and if a player joined and activated those chunks, stuff freaks out?)

    I'm just throwing it out there to see if there are any relations. If others have similar issues. I'm not blaming you guys I'm trying to find the source of this issue.
     
  19. Offline

    MuisYa

    Than dont say this sucks HARD. Because youre server sucks HARD lol.
    If you get yourself teamviewer and skype i can try to help you.
     
  20. Offline

    Clavus

    By 'this' I referred to my problems, not this thread. You guys are doing a great job. Don't get your panties in a bunch.
     
  21. Offline

    MuisYa

    Haha, oke.
    So want some help getting back what it was?
     
  22. Offline

    Clavus

    I'll figure something out later. Maybe we'll have to start a whole new world (we've been running with the current one for only a day now). But first I'm going to do some grocery shopping because I'm HUNGRY.

    EDIT: just a quick question: do these orb removal plugins remove orbs only on ACTIVE chunks or everywhere in the world?
     
  23. Offline

    MuisYa

    I think on active chunks... Not sure.
     
  24. Offline

    registered

    confirm
     
  25. Offline

    Clavus

    Seems after updating bukkit again to the freshly released #1138 it no longer crashes within the minute. However there's still something causing a ton of lag on my server.
     
  26. Offline

    fffizzz

    12:24:02 [WARNING] Task of 'OrbRemoval' generated an exception
    java.lang.NullPointerException
    at me.muisya.orbremoval.Main$1.run(Main.java:38)
    at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:137)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:439)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:374)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:417)


    this is on 1139
     
  27. Offline

    Zothen

    Seriously, I give a shit about "Mojang bugfixes"... Minecarts & Mojang? Sad story, eh? Ok, but this is OT
     
  28. Offline

    idragon2000


    Check the config.yml and check if ur world folder name is world as defined there.

    Also i would like to thank to who developed the orbremoval 2.0 i tried it on 1137 and it seems it works.

    As for the mojang developers, they dont deserve thos 1 mil copies sold. Most of the fixes comed from modders instead of those payed programmers. I lost all respect to Notch, but i praise the modders and bukkit. Without them the game wouldve died long time ago. Money changes people...

    Thanks a lot
     
  29. Offline

    fffizzz

    Doh! is this multiworld capable?

    comma seperated?
     
  30. Offline

    idragon2000

    not sure mate, but on single worlds works. For example my world directory is world1 so config is:

    World-name: world1

    ok i tested on mobs:

    The command works, the auto 30 sec remove works.

    THANKS!

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

Share This Page