feat: add version check
This commit is contained in:
parent
8cf8dccbe4
commit
135d0f2b90
@ -28,6 +28,8 @@ function load() {
|
|||||||
function enable() {
|
function enable() {
|
||||||
switch (DetectServerType) {
|
switch (DetectServerType) {
|
||||||
case ServerType.Bukkit:
|
case ServerType.Bukkit:
|
||||||
|
var i = require('api/item').create('STONE')
|
||||||
|
if (!i.setCustomName) { return }
|
||||||
event.on(self, 'ItemMergeEvent', function(event) {
|
event.on(self, 'ItemMergeEvent', function(event) {
|
||||||
bukkit(event.target, event.entity.itemStack.amount + event.target.itemStack.amount);
|
bukkit(event.target, event.entity.itemStack.amount + event.target.itemStack.amount);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user