Ray_Hughes
  1. public String onPlaceholderRequest(Player player, String identifier, String[] idelist){
  2.                 if (player == null) {
  3.                         return "N/A";
  4.                 }
  5.                
  6.                 // %lazy_mmi_ITEM_VALUE%
  7.             if (identifier.equals("mmi")) {
  8.                    
  9.                         String items = idelist[0];
  10.                         ItemStack item = MythicMobs.inst().getItemManager().getItemStack(items);
  11.                         int amount = Integer.parseInt(idelist[1]);
  12.                         boolean HasItem = player.getInventory().containsAtLeast(item,amount);
  13.                        
  14.                         if (HasItem == true) {
  15.                                 return "yes";
  16.                         } else {
  17.                                 return "no";
  18.                         }
  19.             }
  20.             
  21.             if (identifier.equals("a")) {
  22.                     return "no";
  23.             }
  24.           return null;
  25.         }
复制代码
这个代码无法运行 迷惑

醉倾梦
你有没有在主类hook这个类

William_Shi
https://www.mcbbs.net/thread-1015022-1-1.html
我的教程

第一页 上一页 下一页 最后一页