Don't allow players to keep their inventory from jail.

This commit is contained in:
graywolf336 2014-07-14 23:28:01 -05:00
parent 720d4c1608
commit 3226515107
2 changed files with 6 additions and 0 deletions

1
.gitignore vendored
View File

@ -44,3 +44,4 @@ config.yml
src/com/matejdro/
/dependency-reduced-pom.xml
/global.yml
/data.yml

View File

@ -377,6 +377,11 @@ public class PrisonerManager {
}
//Now, let's restore their inventory
//First up, clear their inventory
player.closeInventory();
player.getInventory().setArmorContents(null);
player.getInventory().clear();
//if the cell isn't null, let's check if the cell has a chest and if so then try out best to restore
//the prisoner's inventory from that
if(cell != null) {