- public String onPlaceholderRequest(Player player, String identifier, String[] idelist){
- if (player == null) {
- return "N/A";
- }
-
- // %lazy_mmi_ITEM_VALUE%
- if (identifier.equals("mmi")) {
-
- String items = idelist[0];
- ItemStack item = MythicMobs.inst().getItemManager().getItemStack(items);
- int amount = Integer.parseInt(idelist[1]);
- boolean HasItem = player.getInventory().containsAtLeast(item,amount);
-
- if (HasItem == true) {
- return "yes";
- } else {
- return "no";
- }
- }
-
- if (identifier.equals("a")) {
- return "no";
- }
- return null;
- }
你有没有在主类hook这个类