feat: add version check

This commit is contained in:
MiaoWoo 2019-03-25 17:14:32 +08:00
parent 8cf8dccbe4
commit 135d0f2b90

View File

@ -28,6 +28,8 @@ function load() {
function enable() {
switch (DetectServerType) {
case ServerType.Bukkit:
var i = require('api/item').create('STONE')
if (!i.setCustomName) { return }
event.on(self, 'ItemMergeEvent', function(event) {
bukkit(event.target, event.entity.itemStack.amount + event.target.itemStack.amount);
});