mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2025-02-22 06:41:30 +01:00
cleanup
This commit is contained in:
parent
b959ea18c9
commit
7f4db3a85b
@ -74,7 +74,7 @@ public class AuthMe extends JavaPlugin {
|
||||
/** Defines the current AuthMeReloaded version code. */
|
||||
private static final int PLUGIN_VERSION_CODE = 100; // Increase this number by one when an update is released
|
||||
|
||||
private static AuthMe authme;
|
||||
private static AuthMe plugin;
|
||||
private static Server server;
|
||||
private Logger authmeLogger;
|
||||
|
||||
@ -122,7 +122,7 @@ public class AuthMe extends JavaPlugin {
|
||||
}
|
||||
|
||||
public static AuthMe getInstance() {
|
||||
return authme;
|
||||
return plugin;
|
||||
}
|
||||
|
||||
public Settings getSettings() {
|
||||
@ -142,7 +142,7 @@ public class AuthMe extends JavaPlugin {
|
||||
// Set the Instance
|
||||
server = getServer();
|
||||
authmeLogger = Logger.getLogger("AuthMe");
|
||||
authme = this;
|
||||
plugin = this;
|
||||
|
||||
// Set up and initialize the command handler
|
||||
this.commandHandler = new CommandHandler(false);
|
||||
|
@ -227,6 +227,7 @@ public class AuthMePlayerListener implements Listener {
|
||||
@EventHandler(priority = EventPriority.HIGHEST)
|
||||
public void onPreLogin(AsyncPlayerPreLoginEvent event) {
|
||||
final String name = event.getName().toLowerCase();
|
||||
@SuppressWarnings("deprecation")
|
||||
final Player player = plugin.getServer().getPlayer(name);
|
||||
if (player == null)
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user