mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 13:16:45 +01:00
Fix NPE for SpoutPlayers
This commit is contained in:
parent
cbbe436a69
commit
4aaaf01ab5
@ -29,7 +29,7 @@ public class SpoutListener implements Listener {
|
||||
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
|
||||
public void onSpoutCraftEnable(SpoutCraftEnableEvent event) {
|
||||
SpoutPlayer spoutPlayer = event.getPlayer();
|
||||
McMMOPlayer mcMMOPlayer = Users.getPlayer(spoutPlayer);
|
||||
McMMOPlayer mcMMOPlayer = Users.getPlayer(event.getPlayer().getPlayer());
|
||||
PlayerProfile profile = mcMMOPlayer.getProfile();
|
||||
|
||||
//TODO: Add custom titles based on skills
|
||||
|
Loading…
Reference in New Issue
Block a user