mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-30 02:05:41 +00:00
fix NPE (#138)
This commit is contained in:
parent
7a4b044d45
commit
635316dcd2
@ -220,9 +220,9 @@ public class Command_saconfig extends FreedomCommand
|
||||
MasterBuilder masterBuilder = plugin.mbl.getMasterBuilder(player);
|
||||
admin.setDiscordID(plugin.mbl.getMasterBuilder(player).getDiscordID());
|
||||
}
|
||||
else if (plugin.pv.getVerificationPlayer(admin.getName()) != null)
|
||||
else if (plugin.pv.getVerificationPlayer(player.getName()) != null)
|
||||
{
|
||||
VPlayer vPlayer = plugin.pv.getVerificationPlayer(admin.getName());
|
||||
VPlayer vPlayer = plugin.pv.getVerificationPlayer(player.getName());
|
||||
if (vPlayer.getDiscordId() != null)
|
||||
{
|
||||
admin.setDiscordID(vPlayer.getDiscordId());
|
||||
|
Loading…
Reference in New Issue
Block a user