From 443e9954af360fa7edc8449fea496a6ca47d19d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Vis=C3=A9e?= Date: Sun, 1 Nov 2015 18:58:22 +0100 Subject: [PATCH] Moved some code around --- .../xephi/authme/command/CommandManager.java | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/main/java/fr/xephi/authme/command/CommandManager.java b/src/main/java/fr/xephi/authme/command/CommandManager.java index 70b147d41..8d952fd5d 100644 --- a/src/main/java/fr/xephi/authme/command/CommandManager.java +++ b/src/main/java/fr/xephi/authme/command/CommandManager.java @@ -153,6 +153,19 @@ public class CommandManager { unregisterCommand.setCommandPermissions("authme.admin.unregister", CommandPermissions.DefaultPermission.OP_ONLY); unregisterCommand.addArgument(new CommandArgumentDescription("player", "Player name", false)); + // Register the forcelogin command + CommandDescription forceLoginCommand = new CommandDescription( + new ForceLoginCommand(), + new ArrayList() {{ + add("forcelogin"); + add("login"); + }}, + "Force login player", + "Force the specified player to login.", + authMeCommand); + forceLoginCommand.setCommandPermissions("authme.admin.forcelogin", CommandPermissions.DefaultPermission.OP_ONLY); + forceLoginCommand.addArgument(new CommandArgumentDescription("player", "Online player name", true)); + // Register the changepassword command CommandDescription changePasswordCommand = new CommandDescription( new RegisterCommand(), @@ -238,19 +251,6 @@ public class CommandManager { getIpCommand.setCommandPermissions("authme.admin.getip", CommandPermissions.DefaultPermission.OP_ONLY); getIpCommand.addArgument(new CommandArgumentDescription("player", "Online player name", true)); - // Register the forcelogin command - CommandDescription forceLoginCommand = new CommandDescription( - new ForceLoginCommand(), - new ArrayList() {{ - add("forcelogin"); - add("login"); - }}, - "Force login player", - "Force the specified player to login.", - authMeCommand); - forceLoginCommand.setCommandPermissions("authme.admin.forcelogin", CommandPermissions.DefaultPermission.OP_ONLY); - forceLoginCommand.addArgument(new CommandArgumentDescription("player", "Online player name", true)); - // Register the spawn command CommandDescription spawnCommand = new CommandDescription( new SpawnCommand(),