Hopefully stop placing of block in front of signs
This commit is contained in:
parent
b54c7ce62f
commit
a27e1bd017
@ -394,6 +394,7 @@ public class Stargate extends JavaPlugin {
|
|||||||
// Cycle through a stargates locations
|
// Cycle through a stargates locations
|
||||||
if (portal != null) {
|
if (portal != null) {
|
||||||
event.setUseItemInHand(Result.DENY);
|
event.setUseItemInHand(Result.DENY);
|
||||||
|
event.setUseInteractedBlock(Result.DENY);
|
||||||
if (!hasPerm(player, "stargate.use", true) ||
|
if (!hasPerm(player, "stargate.use", true) ||
|
||||||
(networkFilter && !hasPerm(player, "stargate.network." + portal.getNetwork(), player.isOp()))) {
|
(networkFilter && !hasPerm(player, "stargate.network." + portal.getNetwork(), player.isOp()))) {
|
||||||
if (!denyMsg.isEmpty()) {
|
if (!denyMsg.isEmpty()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user