Skip to content

Commit

Permalink
v3.7.78
Browse files Browse the repository at this point in the history
  • Loading branch information
ZombieStriker authored Sep 16, 2018
1 parent 15bd563 commit baa313e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
3.7.78
Added fix for unregistered worlds on death.

3.7.77
Fixed EnderChest NPE for unregistered worlds.

Expand Down
2 changes: 1 addition & 1 deletion plugin.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
main: me.zombie_striker.lobbyapi.Main
version: 3.7.77
version: 3.7.78
api-version: 1.13
name: LobbyAPI
commands:
Expand Down
3 changes: 3 additions & 0 deletions src/me/zombie_striker/lobbyapi/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,9 @@ private void onDeath(PlayerDeathEvent event) {
@EventHandler
private void onPlayerDeath(PlayerRespawnEvent event) {
LobbyWorld lb = LobbyAPI.getLobbyWorld(event.getPlayer().getWorld().getName());

if(lb==null)
return;

if (!event.getPlayer().getWorld().getGameRuleValue("keepInventory").equalsIgnoreCase("true"))
clearInventory(event.getPlayer());
Expand Down

0 comments on commit baa313e

Please sign in to comment.