4242import static org .mvplugins .multiverse .core .locale .message .MessageReplacement .replace ;
4343
4444@ Service
45- @ Subcommand ("gamerule|rule" )
4645class GameruleCommand extends CoreCommand {
4746
4847 private final PageFilterFlags flags ;
@@ -52,7 +51,7 @@ class GameruleCommand extends CoreCommand {
5251 this .flags = flags ;
5352 }
5453
55- @ Subcommand ("set" )
54+ @ Subcommand ("gamerule|rule set" )
5655 @ CommandPermission ("multiverse.core.gamerule.set" )
5756 @ CommandCompletion ("@gamerules @gamerulesvalues @mvworlds:multiple|*" )
5857 @ Syntax ("<Gamerule> <Gamerule value> [World or *]" )
@@ -103,7 +102,7 @@ void onGameruleSetCommand(
103102 }
104103
105104 @ SuppressWarnings ("rawtypes,unchecked" )
106- @ Subcommand ("reset" )
105+ @ Subcommand ("gamerule|rule reset" )
107106 @ CommandPermission ("multiverse.core.gamerule.set" )
108107 @ CommandCompletion ("@gamerules @mvworlds:multiple|*" )
109108 @ Syntax ("<Gamerule> [World or *]" )
@@ -145,9 +144,9 @@ void onGameruleResetCommand(
145144 }
146145 }
147146
148- @ Subcommand ("list" )
147+ @ Subcommand ("gamerule|rule list" )
149148 @ CommandPermission ("multiverse.core.gamerule.list" )
150- @ CommandCompletion ("@mvworlds|@flags:groupName=mvgamerulecommand @flags:groupName=" + PageFilterFlags .NAME )
149+ @ CommandCompletion ("@mvworlds|@flags:groupName=" + PageFilterFlags . NAME + " @flags:groupName=" + PageFilterFlags .NAME )
151150 @ Syntax ("[world] [--page <page>] [--filter <filter>]" )
152151 @ Description ("{@@mv-core.gamerule.list.description}" )
153152 void onGameruleListCommand (
@@ -220,6 +219,11 @@ void onGameruleSetCommand(MVCommandIssuer issuer, GameRule gamerule, GameRuleVal
220219 super .onGameruleSetCommand (issuer , gamerule , gameRuleValue , worlds );
221220 }
222221
222+ @ Override
223+ void onGameruleResetCommand (MVCommandIssuer issuer , GameRule gamerule , LoadedMultiverseWorld [] worlds ) {
224+ super .onGameruleResetCommand (issuer , gamerule , worlds );
225+ }
226+
223227 @ Override
224228 @ CommandAlias ("mvrules|mvgamerules" )
225229 void onGameruleListCommand (MVCommandIssuer issuer , LoadedMultiverseWorld world , String [] flags ) {
0 commit comments