mirror of
https://gitlab.com/phoenix-dvpmt/mmoitems.git
synced 2025-02-28 15:41:04 +01:00
- Re-enabled ItemBuildEvent
This commit is contained in:
parent
3c789c00ae
commit
279b008122
@ -262,8 +262,10 @@ public class ItemStackBuilder {
|
||||
@Nullable
|
||||
public ItemStack build() {
|
||||
ItemBuildEvent itemBuildEvent = new ItemBuildEvent(buildNBT().toItem());
|
||||
//Bukkit.getServer().getPluginManager().callEvent(itemBuildEvent);
|
||||
if (itemBuildEvent.isCancelled()) { return null; }
|
||||
Bukkit.getServer().getPluginManager().callEvent(itemBuildEvent);
|
||||
if (itemBuildEvent.isCancelled()) {
|
||||
return null;
|
||||
}
|
||||
return itemBuildEvent.getItemStack();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user