[INACTIVE][ADMN] PingWatcher 2.4.1 - Essential tool to run a lag-free server [677]

Discussion in 'Inactive/Unsupported Plugins' started by Zi0P4tch0, Apr 11, 2011.

  1. Offline

    Zi0P4tch0

    This plugin kicks players with a non-decent ping.

    UPDATE 2.3.3:
    Fixed known bugs.
    Code improved.
    Time interval min value set to 3.

    UPDATE 2.3.5:
    Minor bug fixes

    UPDATE 2.4:
    "/pingme" command available for clients that play on Linux servers (still implementing Windows & Mac version).
    Ops are now excluded from ping check.

    UPDATE 2.4.1:
    Improved ping check response.

    Minecraft servers are buggy and they really suffer from bad pings.
    Give this simple plugin a try, you will not regret it!

    Screenshots:

    [​IMG]

    [​IMG]
    [​IMG]
    Download:

    http://dl.dropbox.com/u/26014957/PingWatcher2.jar

    Donate a dollar to keep my coffee mug always full :)
    [​IMG]

    ------------------------------------------------------------------------

    Changelog:
    2.4.1:
    -Improved ping check response.
    2.4:
    - Added /pingme command (works only if client is on a Linux server).
    - Ops exclusion from pingcheck.
    2.3.5:
    - Minor bug fixes.
    2.3.3:
    - Fixed some bugs, code improved.
    2.3.1:
    -Plugin skips LAN clients. (removed, was really buggy)
    -Added property "login-message"
    2.1:
    - Added command: kickprobability.
    2.0:
    - Completely rewritten and improved.
    1.3.1:
    -custom messages (goodping, pingwarn)
    1.3:
    - warning mode: warn clients / do not kick them!
    1.2.1:
    - Increased the priority for the "OnWorldSave" event.
    1.2:
    - Ping check after a time interval (optional):
    Plugin configuration file: added "time-interval" property.
    1.1:
    - Plugin configuration file: added "plugin-limit" property.
    1.0:
    - Initial release.

    To-do:
    Nothing

    If you're experiencing bugs or you think that the plugin is not working correctly, feel free to contact me.
    I'll answer A.S.A.P.

    Suggestions are welcome too :)

    Zi0P4tch0

    Updated :)

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

    Juze

  3. Offline

    belfedia

    Thanks !
    Can you add a number on message with ping in ms ? :)
     
  4. Offline

    Zi0P4tch0

    Done :)

    Could you explain it better? I do not speak English very well, I still have problems understanding :p

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

    Juze

    For example, after it pings:

    [PingWatcher] You have a good ping (24 ms). Enjoy your stay!
     
  6. Offline

    Zi0P4tch0

    It's not possibile, because Java doesn't implement ICMP protocol.
    I prefer to avoid external libraries, 'cause I want to keep my plugin lightweight :)
     
  7. Offline

    ZerG

    I hate to be the noob to ask but do you have a [617] version i could get from you ?
    im not going to update to 670 with a new MC update on the horizon.
     
  8. Offline

    Zi0P4tch0

    I don't know the code differences that run between those two versions.
    If you have some material, send it to me through private messages :)
     
  9. Offline

    ZerG

    ugh no idea if it would work then and i dont know what you want for material most servers are running 617 or 670 it would be good if you knew your own plugins compatability :)
     
  10. Offline

    Deages

    I'll be monitoring this thread closely :D

    Any chance of having a user-defined ping check sequence?
    By that I mean, having an option to set it to check player's pings every 10 minutes, 5 minutes, etc.
     
  11. Offline

    Zi0P4tch0

    I'm going to implement it sooner or later. Stay tuned :)
     
  12. Offline

    Unscrewed

    What about a "Player kick when over 500 ping" orsomething like that?
     
  13. Offline

    BorderKeeper

    Also if a player himself have the option to simply use /pingme "Your ping is Xms"
     
  14. Offline

    Zi0P4tch0

    If the plugin is configured correctly, it will not allow you to reach that much :p

    Look for the answer I gave to Juze (topic: java not implementing ICMP) :)

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

    gilbz

    i also hate to be a noob but how do i get it display if i have good ping? I aplogize my poor english skills
     
  16. Offline

    ichingpow

    Get faster internet and a better computer and reinstall Windows and don't download anything and install TCP Optimizer.
     
  17. Offline

    Skadar

    Wow, that wasn't what he was asking at all. He was asking for a way to have the plugin display his ping. This plugin has sort of an evil edge to it that I'm not sure I want to bring to my server. It will only generate anger from players... especially if they are unable to see their ping on demand.
     
  18. Offline

    godgodgodgo

    Wait so why is it bad if someone has a long ping? Doesn't that just mean that they will experience lag and no-one else?
     
  19. Offline

    DaffyPWNS

    It's annoying to see players type laaaaaaaaaaaaaaaaaaaaaaaaaaaaag in the chat when the server is clearly not lagging. Not worth a plugin tho imo.
     
  20. Offline

    ShockBuddy

    Sounds useful, not only useful, i beleave that is my plugin!
    Added, Keep work, and you get:

    [diamond][diamond][diamond][diamond] from me, and a [cookedmeat], yummy :D

    I added it to my watchlist, looking for Feature updates!
     
    Zi0P4tch0 likes this.
  21. Offline

    tremor

    I'm going to assume that there is the potential that if you are in the vicinity of a player who is lagging that server mechanics compensate for the slowest common denominator? Otherwise, I don't see the point in this other than to get rid of people who have bad connections and constantly complain about lag.
     
  22. Offline

    Zi0P4tch0

    Updated!
     
  23. Offline

    gilbz

    @Skadar thanks for clearing that up :), appriciated
    The way that i believe ther server works is that the operate on TCP (packet type) and TCP i think means totally complete packets (the other is UDP (uncomplete packets, something like that)), the server send out these packets to all users such as new loaction and such, BUTif user does not revcieve one piece of the packet then the whole packet is earsered and requested again, meaning you are sent back to your location before that paticular stream of packets was sent. People with bad connection take long time to recieve these packets and there are often marked as incomplete and requestd from server again, but beacuse of bad connection they continously request them causing server to dedicate more upload speed into sending those packets to the player with bad connection (an invain attempt but it is how networking works) and this causes lagg on server, then others start lagging and problem gets bigger and bigger until server is unplayable
    this plugin to my understanding pings a players IP address and if the ping comes back as higher than what is recommended then the player is kicked from server, this is to prevent a drain on server upload speeds and to ensure smooth play for other users.
    I hope this clarifies it, once again i apologize for my bad english :)
     
    Zi0P4tch0 likes this.
  24. Offline

    Zi0P4tch0

    I'm thinking about implementing "ping-on-demand". The main obstacle is Java.
    Java lacks of ICMP implementation, the only way to do it is by using sockets.
    Using sockets for a ping-only-task is a waste of resources.
    This trick is also unrieliable (trip measure is efficient under Windows, not so efficient under Linux, I'm doing some tests.)
    Night brings counsel, I will figure it out :)

    The steak is enough :Q_ ;)

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

    joshb

    very nice plugin BUT it keep kicking me no matter what i set the ping limit to, i had it set to 10000000000
    and it still kicked me, can someone tell me what im doing wrong?:(
     
  26. Offline

    Zi0P4tch0

    Download it again and try it, and let me know if the problem persists.

    Source code added.

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

    Nate204

    CB 670. Enabled the plugin, and did a /save-all

     
  28. Offline

    Zi0P4tch0

    Do you have other plugins enabled?
    I have increased the priority of the event by the way.
    Download again the plugin and let me know if the problem persists. :)
     
  29. Offline

    Nate204

    Yes,
    BlockCantKeepUpSpam
    xrayDisabler
    MobLimiter
    MCDocs
    properTime
    FoundDiamonds
    SpyerAdmin
    DeathTpPlus
    LyTreeHelper
    Permissions
    HoneyPot
    NoCheat
    SpawnControll
    ControllerBlock
    DynamicMarket
    Citizens
    HeroChat
    mcbans
    iConomy
    uQuest
    mcMMO
    xWarp
    LWC
    WorldGuard
    WorldEdit
    BigBrother
    Essentials
     
  30. Offline

    Zi0P4tch0

    Try the newly-updated plugin (1.2.1) and let me know if the problem persists :)
     

Share This Page