mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00:00
Simplified permissions by automatically allowing [cmd]air when cmd is allowed.
This commit is contained in:
parent
5dc69ae325
commit
94876194c4
@ -190,7 +190,7 @@ public class SMWorldEditListener extends PluginListener {
|
||||
* @return
|
||||
*/
|
||||
private boolean canUseCommand(Player player, String command) {
|
||||
return player.canUseCommand(command)
|
||||
return player.canUseCommand(command.replace("air", ""))
|
||||
|| player.canUseCommand("/worldedit");
|
||||
}
|
||||
}
|
@ -110,6 +110,8 @@ public class WorldEdit {
|
||||
* Construct an instance of the plugin.
|
||||
*/
|
||||
private WorldEdit() {
|
||||
// Note: Commands should only have the phrase 'air' at the end
|
||||
// for now (see SMWorldEditListener.canUseCommand)
|
||||
commands.put("//pos1", "Set editing position #1");
|
||||
commands.put("//pos2", "Set editing position #2");
|
||||
commands.put("/toggleplace", "Toggle placing at pos #1");
|
||||
|
Loading…
Reference in New Issue
Block a user