mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-11-22 15:05:18 +01:00
Allow other plugin to use event anvil
This commit is contained in:
parent
f51945e7ed
commit
8b12bdc633
@ -66,6 +66,10 @@ public class AnvilListeners extends PluginDependent<EcoPlugin> implements Listen
|
||||
ItemStack left = event.getInventory().getItem(0);
|
||||
ItemStack right = event.getInventory().getItem(1);
|
||||
ItemStack out = event.getResult();
|
||||
// Allow other plugin to use event anvil
|
||||
if (out == null) {
|
||||
return;
|
||||
}
|
||||
String name = event.getInventory().getRenameText();
|
||||
|
||||
if (event.getViewers().isEmpty()) {
|
||||
|
Loading…
Reference in New Issue
Block a user