Class WhitelistCommand

java.lang.Object
net.minecraft.server.dedicated.command.WhitelistCommand

public class WhitelistCommand
extends Object
  • Field Details

    • ALREADY_ON_EXCEPTION

      private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ALREADY_ON_EXCEPTION
    • ALREADY_OFF_EXCEPTION

      private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ALREADY_OFF_EXCEPTION
    • ADD_FAILED_EXCEPTION

      private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ADD_FAILED_EXCEPTION
    • REMOVE_FAILED_EXCEPTION

      private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType REMOVE_FAILED_EXCEPTION
  • Constructor Details

    • WhitelistCommand

      public WhitelistCommand()
  • Method Details

    • register

      public static void register​(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)
    • executeReload

      private static int executeReload​(ServerCommandSource source)
    • executeAdd

      private static int executeAdd​(ServerCommandSource source, Collection<com.mojang.authlib.GameProfile> targets)
    • executeRemove

      private static int executeRemove​(ServerCommandSource source, Collection<com.mojang.authlib.GameProfile> targets)
    • executeOn

      private static int executeOn​(ServerCommandSource source) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • executeOff

      private static int executeOff​(ServerCommandSource source) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • executeList

      private static int executeList​(ServerCommandSource source)