Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-03 01:50:07 +01:00
Added /worldeditselect permission in order to allow just selecting a region.
Dieser Commit ist enthalten in:
Ursprung
6427fdd940
Commit
fd86ae8f6e
@ -1403,6 +1403,16 @@ public class WorldEditListener extends PluginListener {
|
||||
* @return
|
||||
*/
|
||||
private boolean canUseCommand(Player player, String command) {
|
||||
// Allow the /worldeditselect permission
|
||||
if (command.equalsIgnoreCase("//pos1")
|
||||
|| command.equalsIgnoreCase("//pos2")
|
||||
|| command.equalsIgnoreCase("//hpos1")
|
||||
|| command.equalsIgnoreCase("//hpos2")) {
|
||||
return player.canUseCommand(command)
|
||||
|| player.canUseCommand("/worldeditselect")
|
||||
|| player.canUseCommand("/worldedit");
|
||||
}
|
||||
|
||||
return player.canUseCommand(command.replace("air", ""))
|
||||
|| player.canUseCommand("/worldedit");
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren