Fix lectern permissions for spigot servers
- Fixes an issue with players with correct trust level not able to put a book in a lectern when the server is running Spigot - This "fix" isn't needed for Paper... Closes #613
This commit is contained in:
@@ -243,7 +243,7 @@ public class BlockEventHandler implements Listener
|
||||
// Allow players with container trust to place books in lecterns
|
||||
PlayerData playerData = this.dataStore.getPlayerData(player.getUniqueId());
|
||||
Claim claim = this.dataStore.getClaimAt(block.getLocation(), true, playerData.lastClaim);
|
||||
if (block.getType() == Material.LECTERN && placeEvent.getBlockReplacedState() instanceof Lectern)
|
||||
if (block.getType() == Material.LECTERN && placeEvent.getBlockReplacedState().getType() == Material.LECTERN)
|
||||
{
|
||||
if (claim != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user