High-Ping-Kick

Discussion in 'Plugin Requests' started by iksDeeh_, Aug 20, 2012.

  1. Offline

    iksDeeh_

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Good day!

    I am the owner of 2 minecraft servers, they both have their own machines and both are located right next to me.
    My second server is PvP. High-Ping-Players are randomly appearing and killing, what is really annoying and unfair. Nothing against people with bad connection, but seriously, I want to have a Fair-Play!
    What this plugin should do (Well, the name says it, but here again.)
    • Kick people with a ping of 200+ with a custom message.
    Thanks!
  2. Offline

    Deathmarine BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    This was a pretty good idea. Done

    Source:
    https://github.com/deathmarine/PingKick
    Download:
    https://github.com/downloads/deathmarine/PingKick/PingKick.jar
    Command:
    Optional()
    /ping (playername)
    -Checks ping on you and others
    Config:
    Code:
    #Ampersand Color Codes work#
    Message: '&4Ping to high.'
    #Max per Millisec (ping)#
    PingMax: 200
    #Check Via Listeners#
    ListenEvents: true
    #Scheduled Check#
    ScheduleCheckTask: true
    ScheduleCheckTaskTimer: 600
    
    Permissions:
    pingkick.override: bypasses the check
    pingkick.check: allows use of the command
    iksDeeh_ likes this.
  3. Offline

    iksDeeh_

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Thank you very much!
  4. Offline

    b.a

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I didnt want to post the same thread because I need the same thing for 1.4.7 R1.0, please update it!
  5. Offline

    iPadHD

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I found this a really good idea, and I was planning on creating such a thing for my server, RP, Questing, and SMP. For some reasons...
    But looks like this guy got it before I did! <3 Thanks for making it and looks great! Going to test it out soon today!
    Surely he will update it, hopefully at less, because it looks amazing!
  6. Offline

    bossomeness

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    It will work for 1.4.7 R1.0. Just because it might be built against 1.3 or earlier 1.4, doesn't mean it won't work. Try it before posting "please update".

    Btw: Awesome idea!

    This post has been edited 1 time. It was last edited by bossomeness Feb 17, 2013.
  7. Offline

    b.a

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    No it doesnt work, i tested it before i posted the message and it gives severe errors.

    This post has been edited 3 times. It was last edited by TnT Feb 17, 2013.
  8. Offline

    bossomeness

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    can you post the error?
  9. Offline

    b.a

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Code:
    2013-02-17 17:04:46 [SEVERE] Could not pass event PlayerMoveEvent to PingKick v0.1
    org.bukkit.event.EventException
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
        at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462)
        at net.minecraft.server.v1_4_R1.PlayerConnection.a(PlayerConnection.java:220)
        at net.minecraft.server.v1_4_R1.Packet10Flying.handle(SourceFile:136)
        at net.minecraft.server.v1_4_R1.NetworkManager.b(NetworkManager.java:290)
        at net.minecraft.server.v1_4_R1.PlayerConnection.d(PlayerConnection.java:113)
        at net.minecraft.server.v1_4_R1.ServerConnection.b(SourceFile:39)
        at net.minecraft.server.v1_4_R1.DedicatedServerConnection.b(SourceFile:30)
        at net.minecraft.server.v1_4_R1.MinecraftServer.r(MinecraftServer.java:598)
        at net.minecraft.server.v1_4_R1.DedicatedServer.r(DedicatedServer.java:224)
        at net.minecraft.server.v1_4_R1.MinecraftServer.q(MinecraftServer.java:494)
        at net.minecraft.server.v1_4_R1.MinecraftServer.run(MinecraftServer.java:427)
        at net.minecraft.server.v1_4_R1.ThreadServerApplication.run(SourceFile:849)
    Caused by: java.lang.NoClassDefFoundError: org/bukkit/craftbukkit/entity/CraftPlayer
        at com.modcrafting.pingkick.PingKick.checkPing(PingKick.java:82)
        at com.modcrafting.pingkick.PingKick.onPlayerMove(PingKick.java:52)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:477)
        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425)
        ... 14 more
    I guess it is:
    import org.bukkit.craftbukkit.entity.CraftPlayer;
    it should be:
    import org.bukkit.craftbukkit.v1_4_7.entity.CraftPlayer;

    The plugin needs to be updated in order to work with the latest build.

    This post has been edited 2 times. It was last edited by b.a Feb 18, 2013.
  10. Offline

    Yahtze

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

    Updated it for you.

    Download link:
    https://mega.co.nz/#!FNsViTLI!VO8LsBQolrAJwN-RUhTihW49UKUDO7fMAngFmgSR34I
    Source:
    https://github.com/Yahtze/yPingKick

    Original Author: Deathmarine

    Let me know if you have any issues with it, should work exactly the same as the original.

    This post has been edited 3 times. It was last edited by Yahtze Feb 18, 2013.
  11. Offline

    Deathmarine BukkitDev Staff

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

    Yahtze

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

    b.a

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Yahtze can you please reupload the jar because i cant download from mega, it is blocked from here :/
    Thanks Deathmarine and Yahtze for updating it!

Share This Page