BungeeChat API
xXSchrandXx opened this issue ยท 0 comments
Hi, I wanna write a test "if (Player.isMarried())" but I constantly get a Nullpointerexeption.
Here ist my Code:
MarriageMaster plugin; public String checkPlayerMarry(UUID playeruid) { if (playeruid != null) { ProxiedPlayer player = main.getInstance().getProxy().getPlayer(playeruid); UUID partner = plugin.DB.getPartnerUUID(player); // Line 89 if (partner != null) { return main.Loop("&4<3&r"); } } return ""; }
The NullPointerExeption does happen at line 89.
What ist wrong in this Code (Used with newest BunceeCord)