Tutorial by Examples

One of the most critical parts of dealing with NMS code is being able to support mulitple Minecraft versions. There are numerous ways to do this, but a simple solution is to use this code to store the version as a public static field: public static final String NMS_VERSION = Bukkit.getServer().getC...
One very simple thing that you might want to do with NMS that Bukkit doesn't support is get the player's ping. This can be done like this: /** * Gets the players ping by using NMS to access the internal 'ping' field in * EntityPlayer * * @param player * the player whose ping t...

Page 1 of 1