@@ -7324,13 +7324,13 @@ public Mixed exec(Target t, Environment env, Mixed... args)
73247324 throws ConfigRuntimeException {
73257325 final MCPlayer player ;
73267326 final boolean value ;
7327- if (args .length == 1 ) { // no explicit player
7327+ if (args .length == 1 ) {
73287328 player = env .getEnv (CommandHelperEnvironment .class ).GetPlayer ();
7329- Static .AssertPlayerNonNull (player , t ); // may throw CREInsufficientArgumentsException
7329+ Static .AssertPlayerNonNull (player , t );
73307330 value = ArgumentValidation .getBoolean (args [0 ], t );
7331- } else { // player supplied
7332- player = Static .GetPlayer (args [0 ], t ); // may throw CREPlayerOfflineException
7333- value = ArgumentValidation .getBoolean (args [1 ], t ); // may throw CRECastException
7331+ } else {
7332+ player = Static .GetPlayer (args [0 ], t );
7333+ value = ArgumentValidation .getBoolean (args [1 ], t );
73347334 }
73357335 player .setSleepingIgnored (value );
73367336 return CVoid .VOID ;
@@ -7379,11 +7379,11 @@ public static class is_player_sleeping_ignored extends AbstractFunction {
73797379 public Mixed exec (Target t , Environment env , Mixed ... args )
73807380 throws ConfigRuntimeException {
73817381 final MCPlayer player ;
7382- if (args .length == 0 ) { // no explicit player
7382+ if (args .length == 0 ) {
73837383 player = env .getEnv (CommandHelperEnvironment .class ).GetPlayer ();
7384- Static .AssertPlayerNonNull (player , t ); // may throw CREInsufficientArgumentsException
7384+ Static .AssertPlayerNonNull (player , t );
73857385 } else {
7386- player = Static .GetPlayer (args [0 ], t ); // may throw CREPlayerOfflineException
7386+ player = Static .GetPlayer (args [0 ], t );
73877387 }
73887388 return CBoolean .get (player .isSleepingIgnored ());
73897389 }
0 commit comments