High-Ping-Kick

Discussion in 'Archived: Plugin Requests' started by iksDeeh_, Aug 19, 2012.

  1. Offline

    iksDeeh_

    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

    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_

    Thank you very much!
     
  4. Offline

    b.a

    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

    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

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

    b.a

    No it doesnt work, i tested it before i posted the message and it gives severe errors.
     
  8. Offline

    bossomeness

    can you post the error?
     
  9. Offline

    b.a

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

    Yahtze


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

    Deathmarine

  12. Offline

    Yahtze

  13. Offline

    b.a

    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