[INACTIVE][INFO]Latency Tester v0.2 - Test your lag [1000]

Discussion in 'Inactive/Unsupported Plugins' started by Zaros, May 30, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    Zaros

    Latency Tester - Test your lag:
    Version: v0.2

    A very simple plugin that I was surprised to we wasn't already made. When the player types /ping the server returns a message. It also has a extremely small footprint.

    Features:
    • A command to test for lag.
    Download

    Source Code

    Planned updates:
    • Add an ability to change the command and response messages.
    • (?) Permission support
    • More basic commands?
    Known bugs:
    • None!
    Changelog:

    Version 0.2
    • Added console command support
    Version 0.1
    • Release
     
    efstajas, AS1LV3RN1NJA and Litt like this.
  2. Offline

    Jon1155

  3. Offline

    Schloobydooby

    I'm looking for/have an idea for a plugin like this, but checks the latency of each player and allows you to kick any players over a set latency. But very nice work on this one. Way better then having to be in cmd to make the pong mean something.​
     
  4. Offline

    snowboundmage

    Great plugin, but i don't think it's original: Omglag (or omgglag)
    But yeah, a timer would be nice. Still, good job.
     
  5. Offline

    Zaros

    Check the dates, this was posted 2 months prior.
     
  6. lol at source code...ping ... pong
     
  7. Offline

    snowboundmage

    Ok, Didn't know that, :confused:.
    But still, this plugin has been great for me. I'm still using it. Good job.
     
  8. Offline

    Zaros

    @ArtemisTheSecond

    Everybody starts somewhere :D
    This is pretty much unsupported, as my original intent for the plugin is unsupported by Java.
    As long as onCommand works, this plugin shouldn't have any issues.

    @snowboundmage Thank you! Simple or not, its a lot better than people using chat to go "lag?", "LAGGHJJHsahfvsdfh!!!!!". ;)

    Edit:

    @snowboundmage I attempted to add the ping feature, but a timer is unsupported by java as far as I can find. Sorry...
     
  9. Offline

    snowboundmage

    Thanks for trying anyway :)
     
  10. Offline

    Zaros

    :D
     
  11. Offline

    Hackuss

    dont work in 1185;(
     
  12. Offline

    Unset

    I got an idea for lag measurement:

    1. Admin creates a lag-measurement block (sponge or something). There is a hook that prevents the sponge from being destroyed by players.
    2. Player stands on the spongeblock and looks down
    3. Player clicks on the sponge
    4. Server remembers the timestamp when the user clicked on the block
    5. Server removes the sponge block.
    6. (In this part the packet for destroying the block will be transferred, taking some lag)
    7. Client sees that the block underneath is gone
    8. Client sends a packet to the server that he/she is falling
    9. (In this part the packet for changing location will be transferred, taking some lag)
    10. Server sees that the player felt a little down.
    11. Server calculates difference between removing the block, and when the player felt, and tells this to the player.
    12. Sponge will be placed again

    Do you think this would work?
     
  13. Offline

    Asphodan

    Press Tab.

    See pings?

    Now, I'm not calling your plugin redundant. On the contrary; you could have your plugin, when a player types /lag, resync the ping list.

    As that only updates when the player first logs in, and then stays the same.
     
  14. Offline

    Zaros

    It is redundant since the update though, and as a first plugin I don't care for its simplicity. BUT, I will look into re-syncing the ping list!
     
  15. Offline

    Mrchasez

    Essentials
    /ping
    If server is responding it gives back
    pong
     
  16. Offline

    sahaya

    i tried ping test here
    whoisxy.com
    my results are
    Reply from 173.203.189.224: bytes=32 time<1ms TTL=128
    Reply from 173.203.189.224: bytes=32 time<1ms TTL=128
    Reply from 173.203.189.224: bytes=32 time<1ms TTL=128
    Reply from 173.203.189.224: bytes=32 time<1ms TTL=128
    Ping statistics for 173.202.190.224:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
    Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms
     
  17. Offline

    Gravity

    Ok good lord people the plugin just tests if the server is responding to you or not THATS ALL
    YES it says PONG
    Also, sahaya, you should probably edit that and get rid of your IP, not a very smart thing to post.

    As for other ideas, I don't know if this would work because the plugin technically responds to the command at the exact time it is issued, but why dont you get the system time when the command is issued, then right before "pong" is sent to the player get the system time again, find the difference, and then you can report that back to them as latency in miliseconds.

    Code:
    //get command ping
    long servertime = System.currentTimeMillis();
    //process command
    long respondtime = System.currentTimeMillis();
    player.sendMessage("Pong! The current lag in milliseconds is "+(respondtime-servertime));
     
  18. Offline

    ogr93

    Links broken? Github not found
     
  19. Offline

    raoulster

    link broke :(
     
  20. Offline

    -_Husky_-

    Maybe because everyone doesent get what it does and he is fed up with it.
     
  21. Offline

    Zaros

    Quite possibly. I deleted it because its not needed. You could type '/asdf' and tell your latency by how long it takes to return an error, without anyone knowing.

    Edit: Also, those posts were 2 months old... Requesting a lock/delete
     
    -_Husky_- likes this.
Thread Status:
Not open for further replies.

Share This Page