mirror of
https://github.com/CarmJos/UserPrefix.git
synced 2024-09-19 20:15:47 +00:00
清理debug
This commit is contained in:
parent
dd96188b22
commit
61857d6305
@ -1,6 +1,5 @@
|
|||||||
package cc.carm.plugin.userprefix.wrapper;
|
package cc.carm.plugin.userprefix.wrapper;
|
||||||
|
|
||||||
import cc.carm.plugin.userprefix.Main;
|
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
import org.bukkit.configuration.serialization.ConfigurationSerializable;
|
import org.bukkit.configuration.serialization.ConfigurationSerializable;
|
||||||
@ -36,11 +35,9 @@ public class ItemStackWrapper implements ConfigurationSerializable {
|
|||||||
if (material == null) {
|
if (material == null) {
|
||||||
throw new IllegalArgumentException("物品 "+args.get("type")+" 不存在");
|
throw new IllegalArgumentException("物品 "+args.get("type")+" 不存在");
|
||||||
}
|
}
|
||||||
Main.getInstance().getLogger().info("Patched ItemStack with number" + Bukkit.getServer().getUnsafe().getDataVersion() + "!");
|
|
||||||
args.put("v", Bukkit.getServer().getUnsafe().getDataVersion());
|
args.put("v", Bukkit.getServer().getUnsafe().getDataVersion());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
args.forEach((key, value) -> Main.log(key + ": " + value));
|
|
||||||
return ItemStack.deserialize(args);
|
return ItemStack.deserialize(args);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user