mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00:00
Fixed permission issues regarding the edit wand.
This commit is contained in:
parent
b124bffdde
commit
c25f13c3f0
@ -51,7 +51,7 @@ public class SMWorldEditListener extends PluginListener {
|
|||||||
WorldEditPlayer player = new SMWorldEditPlayer(modPlayer);
|
WorldEditPlayer player = new SMWorldEditPlayer(modPlayer);
|
||||||
|
|
||||||
if (itemInHand != 271) { return false; }
|
if (itemInHand != 271) { return false; }
|
||||||
if (!canUseCommand(modPlayer, "/editpos2")) { return false; }
|
if (!canUseCommand(modPlayer, "//pos2")) { return false; }
|
||||||
|
|
||||||
WorldEditSession session = worldEdit.getSession(player);
|
WorldEditSession session = worldEdit.getSession(player);
|
||||||
|
|
||||||
@ -79,7 +79,7 @@ public class SMWorldEditListener extends PluginListener {
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean onBlockDestroy(Player modPlayer, Block blockClicked) {
|
public boolean onBlockDestroy(Player modPlayer, Block blockClicked) {
|
||||||
if (!canUseCommand(modPlayer, "/editpos1")
|
if (!canUseCommand(modPlayer, "//pos1")
|
||||||
&& !canUseCommand(modPlayer, "//")) { return false; }
|
&& !canUseCommand(modPlayer, "//")) { return false; }
|
||||||
|
|
||||||
WorldEdit worldEdit = WorldEdit.getInstance();
|
WorldEdit worldEdit = WorldEdit.getInstance();
|
||||||
|
Loading…
Reference in New Issue
Block a user