Fixes #SD-51

This commit is contained in:
The_Creeper_Cow 2018-10-07 16:14:35 +02:00
parent 57dbfcb189
commit ec901f5b3d

View File

@ -576,7 +576,7 @@ public class ESpawner implements Spawner {
&& player.getItemInHand() != null
&& player.getItemInHand().hasItemMeta()
&& player.getItemInHand().getItemMeta().hasEnchant(Enchantment.SILK_TOUCH)
&& player.hasPermission("epicspawners.silkdrop." + stack.getSpawnerData().getIdentifyingName())
&& player.hasPermission("epicspawners.silkdrop." + stack.getSpawnerData().getIdentifyingName().replace(' ','_'))
|| player.hasPermission("epicspawners.no-silk-drop")) {
int ch = Integer.parseInt(instance.getConfig().getString((placedBy != null