3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-12-26 02:50:06 +01:00

Made all commands support double forward slashes as the command prefix.

Dieser Commit ist enthalten in:
sk89q 2010-12-31 01:45:00 -08:00
Ursprung 24434e3e6f
Commit 195c524c34

Datei anzeigen

@ -1972,9 +1972,13 @@ public class WorldEditListener extends PluginListener {
String searchCmd = split[0].toLowerCase();
if (commands.containsKey(searchCmd)
|| (noDoubleSlash && commands.containsKey("/" + searchCmd))) {
|| (noDoubleSlash && commands.containsKey("/" + searchCmd))
|| ((searchCmd.length() < 3 || searchCmd.charAt(2) != '/')
&& commands.containsKey(searchCmd.substring(1)))) {
if (noDoubleSlash && commands.containsKey("/" + searchCmd)) {
split[0] = "/" + split[0];
} else if (commands.containsKey(searchCmd.substring(1))) {
split[0] = split[0].substring(1);
}
if (canUseCommand(ply, split[0])) {