1.0.2
Documentation update
This commit is contained in:
1 parent
a934e4a70c
commit
b8906cd92d
2 files changed
-39
No files matched your search
@@ -31,40 +31,6 @@ public final class MobCage extends JavaPlugin {
|
||||
this
|
||||
);
|
||||
|
||||
|
||||
/*
|
||||
Debug Code
|
||||
*/
|
||||
|
||||
getCommand("cagedebug").setExecutor((sender, command, label, args) -> {
|
||||
|
||||
if (!(sender instanceof Player player)) {
|
||||
sender.sendMessage("Players only.");
|
||||
return true;
|
||||
}
|
||||
|
||||
ItemStack item = player.getInventory().getItemInMainHand();
|
||||
|
||||
if (item.getType().isAir()) {
|
||||
player.sendMessage("You are not holding an item.");
|
||||
return true;
|
||||
}
|
||||
|
||||
player.sendMessage("§6===== CAGE DEBUG =====");
|
||||
player.sendMessage("§eType: §f" + item.getType());
|
||||
player.sendMessage("§eAmount: §f" + item.getAmount());
|
||||
player.sendMessage("§eItem: §f" + item);
|
||||
player.sendMessage("§eSerialized:");
|
||||
player.sendMessage("§f" + item.serialize());
|
||||
player.sendMessage("§6======================");
|
||||
|
||||
return true;
|
||||
});
|
||||
|
||||
/*
|
||||
Debug Code
|
||||
*/
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user