Fix UtilsTest and replace the last test setups not to use reflections

This commit is contained in:
ljacqu
2015-11-28 17:13:33 +01:00
parent 67244d5e7b
commit b916a38d80
4 changed files with 41 additions and 16 deletions
@@ -3,6 +3,7 @@ package fr.xephi.authme.command.executable.logout;
import fr.xephi.authme.AuthMe;
import fr.xephi.authme.command.CommandParts;
import fr.xephi.authme.command.ExecutableCommand;
import fr.xephi.authme.util.Wrapper;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
@@ -18,7 +19,7 @@ public class LogoutCommand extends ExecutableCommand {
}
// Get the player instance
final AuthMe plugin = AuthMe.getInstance();
final AuthMe plugin = Wrapper.getInstance().getAuthMe();
final Player player = (Player) sender;
// Logout the player