3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-12-24 18:10:08 +01:00

Made //fast display a different message if the argument matches the current mode

Dieser Commit ist enthalten in:
Wizjany 2011-10-29 13:32:26 -04:00
Ursprung 2b9f0be8df
Commit 2719308ada

Datei anzeigen

@ -76,7 +76,7 @@ public class GeneralCommands {
boolean light = args.hasFlag('f');
String newState = args.getString(0, null);
Boolean dir = newState.equals("on") ? true : newState.equals("off") ? false : null;
Boolean dir = newState == null ? null : newState.equals("on") ? true : newState.equals("off") ? false : null;
boolean hadFast = session.hasFastMode();
boolean hadLight = session.hasFastLighting();
@ -89,7 +89,7 @@ public class GeneralCommands {
session.setFastLighting(setLight);
}
player.print("Fast mode " + (!setFast ? "disabled." :
player.print("Fast mode " + (setFast == hadFast ? "already " : "") + (!setFast ? "disabled." :
("enabled. You may need to rejoin to see changes"
+ (setLight ? "and lighting in affected chunks may be wrong." : "."))));
}