Am I Lagging?
- I currently do not have the time to be working on this project, i will continue development when i have more time*
A small, lightweight ping system that shows players their ping in the player list (tab). You can, if you want to, make it so that if a player has a ping which is higher than the max ping you specify in the config, he will be kicked.
Installation
- Drop the .Jar file in your plugins folder.
- Start/Reload the server.
- Edit the generated config inside the newly made folder to your needs. (set ping limit to -1 to disable ping limit).
- Start/Reload the server again.
This plugin might not work if you already have another plugin using the player list
Permissions
As of v1.5, you can add a permission that will exclude a player from being kicked: AmILagging.exclude
Change Log
Version 1.6
- Much more stable now (should not break with every new bukkit release [thanks to FurmigaHumana :D])
- Much faster now, takes a lot less (already small) load of the server
Version 1.5
- Updated to 1.6.2
- Added exclude permission: AmILagging.exclude
- Added the option to add a timer to see if the player still lags after a set amount of time
- Clears the player list after disable
- Added reload command
Version 1.4
- Updated to 1.6.1
Version 1.3
- Fixed that nasty 0 ping bug! :)
- Works faster and in a more resource free way
- Updated to-do list :)
Version 1.2
- Set priority for the player list to be in this plugin's use
- Should now be absolutely conflict free (if you still are experiencing problems due to conflicting files, comment with your plugin list)
Version 1.1
- Added a few checks to make sure the plugin wont conflict with other plugins using the player list
- Made a fix for a nullpointer error, hoping it will fix null pointers for custom bukkit jars such as spigot and libigot
Version 1.0
- Plugin launch
To-do List
- Add Spout compatibility
- Make it play nice with other plugins using scoreboard
- Make it work with custom bukkit jars
Maybe a vip node that will exclude vips from kick? Tell me your thoughts about it :DMake it not interfere with other plugins that use the player list.
I don't like coffee that much, but id love a cup of chocolate milk :D
@busterguy
What will the reload command do?
@fungreenfox
There is no second highest, ts either shown or not. When say highest priority i mean that it will always be the one shown
can you add in a reload command?
What happens if you set the scoreboard 2nd highest instead, because the healthbar is showing powerlevel now, and not the heart and slashes.
@fungreenfox
havnt compiled against 1.6.1 yet, ill get on that
EDIT: Compiled and working :) enjoy
FYI
I am running craftbukkit 1.6.1 Amilagging is producing this:
18:29:07 [WARNING] [Am I Lagging] Task #4 for Am I Lagging v1.0 generated an exception java.lang.NoClassDefFoundError: org/bukkit/craftbukkit/v1_5_R3/entity/CraftPlayer at me.amitlin14.plugins.ping.Ping$1.run(Ping.java:55) at org.bukkit.craftbukkit.v1_6_R1.scheduler.CraftTask.run(CraftTask.java:53) at org.bukkit.craftbukkit.v1_6_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:345) at net.minecraft.server.v1_6_R1.MinecraftServer.t(MinecraftServer.java:523) at net.minecraft.server.v1_6_R1.DedicatedServer.t(DedicatedServer.java:226) at net.minecraft.server.v1_6_R1.MinecraftServer.s(MinecraftServer.java:487) at net.minecraft.server.v1_6_R1.MinecraftServer.run(MinecraftServer.java:420) at net.minecraft.server.v1_6_R1.ThreadServerApplication.run(SourceFile:582)
@rfsantos1996
Its supposed to do that. You cant have 2 scoreboards in the player list, ive set Am I Lagging to be the highest priority so the player list will always display the player's ping
@amitlin14
Am I Lagging replaces other scoreboards (again) lol xD
@fungreenfox
ill add that?
@rfsantos1996
What do you mean? can you provide a screenshot?
Sometimes, when ppl log in for first time, they are kicked with "you have been kicked for having 4978634 in ping.
Can you add a skip function for this? Probably no ping the first minute the server runs, or first time the plugin see a new player. I dont know which one is true.
@amitlin14
Ando also, mctop from mcMMO is appearing too fast (updated when am i laging update ping)
@fungreenfox
I'll add that :)
@Sitmobedaf
I'll look into it
@amitlin14
Means, adding a permission node to the group VIP, will let everyone in that group pass the kicking. ex. "amilag.nokick"
With your plugin does not work part plug HealthBar, but it does not show recuperating players TAB - sheet and overhead. Screen1 Screen2
@Sitmobedaf
it is compatible with healthbar o.o. i cant replace the standard form of communication quality display, that is client side. and there is a possibility to disable pinglimit - read config page!
Ay more questions? :D
@wiedzmin137
no prob enjoy
OK, thanks for response and 1.3 :)
Make it compatible with Healthbar. Let Ping replace the standard form of communication quality display. Add the possibility to disable PingLimit.
@amitlin14
Yay! Working
@wiedzmin137
I am not certain its the speed divided by two, because your upload speed might be different than the server's upload speed, so the time it takes the server to ping you might be different than the time it takes you to ping the server.
I don't want to mislead people, so ill stick to the current configuration for now, until something better comes out with a new bukkit release maybe
@MarioG1
Fixed! Finally found that nasty line that prevented it to work nicely with other plugins that alter the player list, at least with superchat and ichatplayerlist. Enjoy! :D
@penorzilla
Added to my to do list
@fungreenfox
Fixed the 0 ping! Enjoy :)
@Arrxzon
Fixed 0 ping! Enjoy! :)
So, if I understood well ping is multiplied by about 2, you can do value divided by 2?
The ping is always 0 if have ichat player list installed (colored names in the player list). Is it possible to make this plugin compatible with ichat player list?
And is it possible to display the correct graphical ping indicator after the ping number?