Skip to content

Commit

Permalink
Hide create command (#250)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeryn99 authored May 10, 2024
1 parent cea2f79 commit 9052b3b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

public class TardisRefined {

public static boolean IS_CONTROL_GROUP = true;
public static boolean IS_CONTROL_GROUP = false;
public static boolean IS_RELEASE = !IS_CONTROL_GROUP || !SharedConstants.IS_RUNNING_IN_IDE;

public static final String MODID = "tardis_refined";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,13 @@ public static void register(CommandDispatcher<CommandSourceStack> dispatcher) {
.then(UpgradesCommand.register(dispatcher))
.then(Commands.literal("data").then(Commands.literal("export").then(ExportDesktopCommand.register(dispatcher))))
.then(LevelCommand.register(dispatcher))
.then(CreateCommand.register(dispatcher)));
);

if(!TardisRefined.IS_RELEASE) {
dispatcher.register(Commands.literal(TardisRefined.MODID + "_dev").requires(commandSource -> commandSource.hasPermission(Platform.getServer().getOperatorUserPermissionLevel()))
.then(CreateCommand.register(dispatcher)
));
}
}

}

0 comments on commit 9052b3b

Please sign in to comment.