Merge pull request #33 from Trojaner25/patch-1

Fix NPE when onPlayerJoins occurs
This commit is contained in:
Alexandre Vanhecke 2015-05-02 01:25:47 +02:00
commit 5d230e4460

View File

@ -96,7 +96,7 @@ public class LimboCache {
if (player.isDead()) { if (player.isDead()) {
loc = plugin.getSpawnLocation(player); loc = plugin.getSpawnLocation(player);
} }
cache.put(player.getName(), new LimboPlayer(name, loc, inv, arm, gameMode, operator, playerGroup, flying)); cache.put(name, new LimboPlayer(name, loc, inv, arm, gameMode, operator, playerGroup, flying));
} }
public void addLimboPlayer(Player player, String group) { public void addLimboPlayer(Player player, String group) {