mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-14 21:22:09 +00:00
Don't bomb if userMap isn't initialized.
This commit is contained in:
parent
2f562f79aa
commit
38655811b7
3 changed files with 17 additions and 10 deletions
|
@ -491,6 +491,12 @@ public class Essentials extends JavaPlugin implements IEssentials
|
|||
{
|
||||
return (User)base;
|
||||
}
|
||||
|
||||
if (userMap == null) {
|
||||
LOGGER.log(Level.WARNING, "Essentials userMap not initialized");
|
||||
return null;
|
||||
}
|
||||
|
||||
User user = userMap.getUser(base.getName());
|
||||
|
||||
if (user == null)
|
||||
|
|
|
@ -64,7 +64,8 @@ public class SignGameMode extends EssentialsSign
|
|||
{
|
||||
player.setGameMode(GameMode.ADVENTURE);
|
||||
}
|
||||
else {
|
||||
else
|
||||
{
|
||||
throw new SignException(_("invalidSignLine", 2));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue