Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-25 10:30:04 +01:00
Simplified permissions by automatically allowing [cmd]air when cmd is allowed.
Dieser Commit ist enthalten in:
Ursprung
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");
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren