PingAPI
PingAPI gives developers more control over how they reply to ping requests. Simply put it provides an improvement to Bukkit's ServerListPingEvent. The Javadocs can be found here.
It has been a few years since I have worked on this project, but I decided to update it for newer versions of CraftBukkit and keep backwards compatibility. I will try to keep it maintained and up to date from now on. The most important change to note is that creating animations is no longer possible for servers running newer versions of CraftBukkit.
Features
- Modify the online player count and the max players
- Change the player sample (list of players shown when hovering over the player count)
- Fake the protocol name and version to display text instead of the player count
- Create server list animations (1.8 or earlier)
Usage
- Creating a basic listener
- Changing the player count
- Changing the player count to text
- Changing the player sample (hover message)
- Creating animations
Make sure to add 'depend: [PingAPI]' to your plugin.yml file
Check out the source on GitHub
/ping
Hi, is there any posibility that you could update this for 1.8.8? I really want to use SuperHub and that plugin can only be used with yours
Thank you for your time and have a nice day
please update to 1.8.6
can you make a version of PingApi that can be configured in an yml file in the plugins map?
Mine says that but i'm running a 1.8 Bukkit server.
@KokeCacao It only supports 1.7.9, 1.7.10, and 1.8
oh god.I can't use it on 1.7.2.
[20:08:39 INFO]: [PingAPI] Enabling PingAPI v0.1.2
[20:08:39 WARN]: java.lang.ClassNotFoundException: com.skionz.pingapi.v1_7_R1.PingInjector [20:08:39 WARN]: at java.net.URLClassLoader$1.run(Unknown Source) [20:08:39 WARN]: at java.net.URLClassLoader$1.run(Unknown Source) [20:08:39 WARN]: at java.security.AccessController.doPrivileged(Native Method) [20:08:39 WARN]: at java.net.URLClassLoader.findClass(Unknown Source) [20:08:39 WARN]: at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:77) [20:08:39 WARN]: at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:62) [20:08:39 WARN]: at java.lang.ClassLoader.loadClass(Unknown Source) [20:08:39 WARN]: at java.lang.ClassLoader.loadClass(Unknown Source) [20:08:39 WARN]: at java.lang.Class.forName0(Native Method) [20:08:39 WARN]: at java.lang.Class.forName(Unknown Source) [20:08:39 WARN]: at com.skionz.pingapi.PingAPI.onEnable(PingAPI.java:18) [20:08:39 WARN]: at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:250) [20:08:39 WARN]: at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:324) [20:08:39 WARN]: at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:404) [20:08:39 WARN]: at org.bukkit.craftbukkit.v1_7_R1.CraftServer.loadPlugin(CraftServer.java:439) [20:08:39 WARN]: at org.bukkit.craftbukkit.v1_7_R1.CraftServer.enablePlugins(CraftServer.java:375) [20:08:39 WARN]: at net.minecraft.server.v1_7_R1.MinecraftServer.m(MinecraftServer.java:342) [20:08:39 WARN]: at net.minecraft.server.v1_7_R1.MinecraftServer.g(MinecraftServer.java:319) [20:08:39 WARN]: at net.minecraft.server.v1_7_R1.MinecraftServer.a(MinecraftServer.java:275) [20:08:39 WARN]: at net.minecraft.server.v1_7_R1.DedicatedServer.init(DedicatedServer.java:175) [20:08:39 WARN]: at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:424) [20:08:39 WARN]: at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) ======
is it?
@Skionz
Lol, thought that I've downloaded the 0.1.2 version :D However, it works now. Thanks for your help !
@gartenzaun It seems that the exception is being thrown because your using it on 1.7.10 or lower with PingAPI version 0.1.1. I am not sure what you meant, but try updating to 0.1.2 and if that doesn't work message me.
@buddYGhost I can't sorry. It is probably a good time to update.
@Skionz
Woow, you plugin show be good, have a small problem.. NOT HAVE VERSION FOR MY CRAFTBUKKIT ,_,
You can make a "test" version for me? I can help you! I am brazilliam *sorry my english* and can translate, or help?!
Hello,
it throws my that error and it says that I'm using v.0.1.1 but I use v.0.1.2 too :/
08.02 22:10:17 [Server] INFO ... 12 more 08.02 22:10:17 [Server] INFO at java.lang.ClassLoader.loadClass(ClassLoader.java:358) [?:1.7.0_51] 08.02 22:10:17 [Server] INFO at java.lang.ClassLoader.loadClass(ClassLoader.java:425) [?:1.7.0_51] 08.02 22:10:17 [Server] INFO at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:86) [spigot.jar:git-Spigot-1.7.9-R0.2-205-g0a049fa] 08.02 22:10:17 [Server] INFO at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:101) [spigot.jar:git-Spigot-1.7.9-R0.2-205-g0a049fa] 08.02 22:10:17 [Server] INFO at java.net.URLClassLoader.findClass(URLClassLoader.java:354) [?:1.7.0_51] 08.02 22:10:17 [Server] INFO at java.security.AccessController.doPrivileged(Native Method) [?:1.7.0_51] 08.02 22:10:17 [Server] INFO at java.net.URLClassLoader$1.run(URLClassLoader.java:355) [?:1.7.0_51] 08.02 22:10:17 [Server] INFO at java.net.URLClassLoader$1.run(URLClassLoader.java:366) [?:1.7.0_51] 08.02 22:10:17 [Server] INFO Caused by: java.lang.ClassNotFoundException: io.netty.channel.ChannelHandler 08.02 22:10:17 [Server] INFO at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:628) [spigot.jar:git-Spigot-1.7.9-R0.2-205-g0a049fa] 08.02 22:10:17 [Server] INFO at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java:458) [spigot.jar:git-Spigot-1.7.9-R0.2-205-g0a049fa] 08.02 22:10:17 [Server] INFO at net.minecraft.server.v1_7_R4.DedicatedServer.init(DedicatedServer.java:210) [spigot.jar:git-Spigot-1.7.9-R0.2-205-g0a049fa] 08.02 22:10:17 [Server] INFO at net.minecraft.server.v1_7_R4.MinecraftServer.a(MinecraftServer.java:290) [spigot.jar:git-Spigot-1.7.9-R0.2-205-g0a049fa] 08.02 22:10:17 [Server] INFO at net.minecraft.server.v1_7_R4.MinecraftServer.g(MinecraftServer.java:334) [spigot.jar:git-Spigot-1.7.9-R0.2-205-g0a049fa] 08.02 22:10:17 [Server] INFO at net.minecraft.server.v1_7_R4.MinecraftServer.n(MinecraftServer.java:360) [spigot.jar:git-Spigot-1.7.9-R0.2-205-g0a049fa] 08.02 22:10:17 [Server] INFO at org.bukkit.craftbukkit.v1_7_R4.CraftServer.enablePlugins(CraftServer.java:394) [spigot.jar:git-Spigot-1.7.9-R0.2-205-g0a049fa] 08.02 22:10:17 [Server] INFO at org.bukkit.craftbukkit.v1_7_R4.CraftServer.loadPlugin(CraftServer.java:476) [spigot.jar:git-Spigot-1.7.9-R0.2-205-g0a049fa] 08.02 22:10:17 [Server] INFO at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:412) [spigot.jar:git-Spigot-1.7.9-R0.2-205-g0a049fa] 08.02 22:10:17 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:332) [spigot.jar:git-Spigot-1.7.9-R0.2-205-g0a049fa] 08.02 22:10:17 [Server] INFO at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:316) [spigot.jar:git-Spigot-1.7.9-R0.2-205-g0a049fa] 08.02 22:10:17 [Server] INFO at com.skionz.pingapi.PingAPI.onEnable(PingAPI.java:16) [?:?] 08.02 22:10:17 [Server] INFO java.lang.NoClassDefFoundError: io/netty/channel/ChannelHandler 08.02 22:10:17 [Server] ERROR Error occurred while enabling PingAPI v0.1.1 (Is it up to date?)
@Skionz
i know but the public class (plugin name) extends JavaPlugin {
its required
but i love your plugin good luck for future for your plugin
Nice plugin. It actually comes in use :D
@NizarZa123 It is not required to override the onEnable method.
public class MyPlugin extends JavaPlugin {
public void onEnable() {
you use it all times when you want create a plugin !
Cool plugin!
@NizarZa123 Wait wait wait, what do you even mean with that?
Hi, public class MyPlugin extends JavaPlugin { public void onEnable() {
remove this cause this code: public class MyPlugin extends JavaPlugin { public void onEnable() {
its Important for any plugin, API or not API^^
if: public class MyPlugin extends JavaPlugin { public void onEnable() {
isnt on code, the plugin not work^^
wow... nice <33 thx.