3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-11-07 03:50:06 +01:00

Fixed permission issues regarding the edit wand.

Dieser Commit ist enthalten in:
sk89q 2010-10-19 21:00:02 -07:00
Ursprung b124bffdde
Commit c25f13c3f0

Datei anzeigen

@ -51,7 +51,7 @@ public class SMWorldEditListener extends PluginListener {
WorldEditPlayer player = new SMWorldEditPlayer(modPlayer);
if (itemInHand != 271) { return false; }
if (!canUseCommand(modPlayer, "/editpos2")) { return false; }
if (!canUseCommand(modPlayer, "//pos2")) { return false; }
WorldEditSession session = worldEdit.getSession(player);
@ -79,7 +79,7 @@ public class SMWorldEditListener extends PluginListener {
*/
@Override
public boolean onBlockDestroy(Player modPlayer, Block blockClicked) {
if (!canUseCommand(modPlayer, "/editpos1")
if (!canUseCommand(modPlayer, "//pos1")
&& !canUseCommand(modPlayer, "//")) { return false; }
WorldEdit worldEdit = WorldEdit.getInstance();