3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-11-12 14:10:07 +01:00

Fixed a bug that made command checking case-sensitive. /, restored (// still works).

Dieser Commit ist enthalten in:
sk89q 2010-10-18 16:14:26 -07:00
Ursprung 2bec24db9d
Commit 86f2c67a35

Datei anzeigen

@ -131,7 +131,12 @@ public class SMWorldEditListener extends PluginListener {
WorldEdit worldEdit = WorldEdit.getInstance();
try {
if (worldEdit.getCommands().containsKey(split[0])) {
// Legacy /, command
if (split[0].equals("/,")) {
split[0] = "//";
}
if (worldEdit.getCommands().containsKey(split[0].toLowerCase())) {
if (canUseCommand(modPlayer, split[0])) {
WorldEditPlayer player = new SMWorldEditPlayer(modPlayer);
WorldEditSession session = worldEdit.getSession(player);