Fix UtilsTest and replace the last test setups not to use reflections
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user