mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-19 00:55:32 +01:00
Don't bomb if userMap isn't initialized.
This commit is contained in:
parent
2f562f79aa
commit
38655811b7
@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user