Renamed messages from "option" to "method" to make things clearer

Added better support for tab completion and ignoring the first arg of falling blocks and item disguises, so /disguise fallingblock setburning - Is now possible
Fixed itemstack parsing returning illegal/unwanted air block
This commit is contained in:
libraryaddict
2020-04-04 19:58:21 +13:00
parent 269a5c3aef
commit efbd6e29e3
12 changed files with 62 additions and 53 deletions

View File

@@ -126,9 +126,7 @@ public class ReflectionManager {
if (obj.isAnnotationPresent(NmsRemovedIn.class)) {
NmsRemovedIn removed = obj.getAnnotation(NmsRemovedIn.class);
if (removed.val().isSupported()) {
return false;
}
return !removed.val().isSupported();
}
return true;
@@ -716,7 +714,7 @@ public class ReflectionManager {
public static double getPing(Player player) {
try {
return (double) pingField.getInt(ReflectionManager.getNmsEntity(player));
return pingField.getInt(ReflectionManager.getNmsEntity(player));
}
catch (Exception ex) {
ex.printStackTrace();