mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-11-26 20:26:01 +01:00
Do not put a null world at respawn
This commit is contained in:
parent
db27341832
commit
c12643a138
@ -27,6 +27,11 @@ public class CacheDataSource extends Thread implements DataSource {
|
||||
cache.put(auth.getNickname(), auth);
|
||||
}
|
||||
|
||||
public void run()
|
||||
{
|
||||
this.setName("AuthMeCacheThread");
|
||||
}
|
||||
|
||||
@Override
|
||||
public synchronized boolean isAuthAvailable(String user) {
|
||||
if (cache.containsKey(user.toLowerCase()))
|
||||
|
@ -48,6 +48,7 @@ public class FlatFileThread extends Thread implements DataSource {
|
||||
AuthMe.getInstance().getServer().getPluginManager().disablePlugin(AuthMe.getInstance());
|
||||
return;
|
||||
}
|
||||
this.setName("AuthMeFlatFileThread");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -94,10 +94,11 @@ public class MySQLThread extends Thread implements DataSource {
|
||||
AuthMe.getInstance().getServer().getPluginManager().disablePlugin(AuthMe.getInstance());
|
||||
return;
|
||||
}
|
||||
this.setName("AuthMeMySQLThread");
|
||||
}
|
||||
|
||||
private synchronized void connect() throws ClassNotFoundException,
|
||||
SQLException, TimeoutException {
|
||||
SQLException, TimeoutException, NumberFormatException {
|
||||
Class.forName("com.mysql.jdbc.Driver");
|
||||
ConsoleLogger.info("MySQL driver loaded");
|
||||
MysqlConnectionPoolDataSource dataSource = new MysqlConnectionPoolDataSource();
|
||||
|
@ -72,6 +72,7 @@ public class SQLiteThread extends Thread implements DataSource {
|
||||
AuthMe.getInstance().getServer().getPluginManager().disablePlugin(AuthMe.getInstance());
|
||||
return;
|
||||
}
|
||||
this.setName("AuthMeSQLiteThread");
|
||||
}
|
||||
|
||||
private synchronized void connect() throws ClassNotFoundException,
|
||||
|
@ -1177,6 +1177,7 @@ public class AuthMePlayerListener implements Listener {
|
||||
} catch (NullPointerException npe) {
|
||||
}
|
||||
}
|
||||
if (spawn != null && spawn.getWorld() != null)
|
||||
event.setRespawnLocation(spawn);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user