mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-11-09 12:10:56 +01:00
added nullcheck
This commit is contained in:
parent
8c8f84ae4a
commit
c88bad08c0
@ -433,6 +433,9 @@ public class AuthMePlayerListener implements Listener {
|
|||||||
final String name = event.getName().toLowerCase();
|
final String name = event.getName().toLowerCase();
|
||||||
final Player player = Bukkit.getServer().getPlayer(name);
|
final Player player = Bukkit.getServer().getPlayer(name);
|
||||||
|
|
||||||
|
if (player == null)
|
||||||
|
return;
|
||||||
|
|
||||||
// Check if forceSingleSession is set to true, so kick player that has
|
// Check if forceSingleSession is set to true, so kick player that has
|
||||||
// joined with same nick of online player
|
// joined with same nick of online player
|
||||||
if (plugin.dataManager.isOnline(player, name) && Settings.isForceSingleSessionEnabled) {
|
if (plugin.dataManager.isOnline(player, name) && Settings.isForceSingleSessionEnabled) {
|
||||||
|
Loading…
Reference in New Issue
Block a user