mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-17 20:11:21 +02:00
Don't bomb if userMap isn't initialized.
This commit is contained in:
@@ -491,6 +491,12 @@ public class Essentials extends JavaPlugin implements IEssentials
|
|||||||
{
|
{
|
||||||
return (User)base;
|
return (User)base;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (userMap == null) {
|
||||||
|
LOGGER.log(Level.WARNING, "Essentials userMap not initialized");
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
User user = userMap.getUser(base.getName());
|
User user = userMap.getUser(base.getName());
|
||||||
|
|
||||||
if (user == null)
|
if (user == null)
|
||||||
|
@@ -64,7 +64,8 @@ public class SignGameMode extends EssentialsSign
|
|||||||
{
|
{
|
||||||
player.setGameMode(GameMode.ADVENTURE);
|
player.setGameMode(GameMode.ADVENTURE);
|
||||||
}
|
}
|
||||||
else {
|
else
|
||||||
|
{
|
||||||
throw new SignException(_("invalidSignLine", 2));
|
throw new SignException(_("invalidSignLine", 2));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user