Remove leftover command
This commit is contained in:
parent
f814f8151c
commit
4d2c2cb36f
2 changed files with 0 additions and 22 deletions
|
@ -1,7 +1,6 @@
|
||||||
package cc.reconnected.server;
|
package cc.reconnected.server;
|
||||||
|
|
||||||
import cc.reconnected.server.commands.AfkCommand;
|
import cc.reconnected.server.commands.AfkCommand;
|
||||||
import cc.reconnected.server.commands.RccCommand;
|
|
||||||
import cc.reconnected.server.database.PlayerData;
|
import cc.reconnected.server.database.PlayerData;
|
||||||
import cc.reconnected.server.events.PlayerActivityEvents;
|
import cc.reconnected.server.events.PlayerActivityEvents;
|
||||||
import cc.reconnected.server.events.PlayerWelcome;
|
import cc.reconnected.server.events.PlayerWelcome;
|
||||||
|
@ -82,7 +81,6 @@ public class RccServer implements ModInitializer {
|
||||||
|
|
||||||
LOGGER.info("Starting rcc-server");
|
LOGGER.info("Starting rcc-server");
|
||||||
|
|
||||||
CommandRegistrationCallback.EVENT.register(RccCommand::register);
|
|
||||||
CommandRegistrationCallback.EVENT.register(AfkCommand::register);
|
CommandRegistrationCallback.EVENT.register(AfkCommand::register);
|
||||||
|
|
||||||
ServerLifecycleEvents.SERVER_STARTED.register(server -> {
|
ServerLifecycleEvents.SERVER_STARTED.register(server -> {
|
||||||
|
|
|
@ -1,20 +0,0 @@
|
||||||
package cc.reconnected.server.commands;
|
|
||||||
|
|
||||||
import com.mojang.brigadier.CommandDispatcher;
|
|
||||||
import net.minecraft.command.CommandRegistryAccess;
|
|
||||||
import net.minecraft.server.command.CommandManager;
|
|
||||||
import net.minecraft.server.command.ServerCommandSource;
|
|
||||||
|
|
||||||
import static net.minecraft.server.command.CommandManager.literal;
|
|
||||||
|
|
||||||
public class RccCommand {
|
|
||||||
public static void register(CommandDispatcher<ServerCommandSource> dispatcher, CommandRegistryAccess registryAccess, CommandManager.RegistrationEnvironment environment) {
|
|
||||||
dispatcher.register(
|
|
||||||
literal("rcc")
|
|
||||||
.requires(source -> source.hasPermissionLevel(2))
|
|
||||||
.executes(ctx -> {
|
|
||||||
return 1;
|
|
||||||
})
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in a new issue