Add test for LoginCommand; create AuthMe mock test util
Had to create a getter for the Management instance in the AuthMe class for mocking, but fields should generally not be accessed globally. Hopefully soon we will be able to make the field private.
This commit is contained in:
@@ -24,7 +24,7 @@ public class LoginCommand extends ExecutableCommand {
|
||||
final String playerPass = commandArguments.get(0);
|
||||
|
||||
// Log the player in
|
||||
plugin.management.performLogin(player, playerPass, false);
|
||||
plugin.getManagement().performLogin(player, playerPass, false);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user