Closes gh-40. First v1.0 commit. Updated plugin.yml. Fixed client crash caused by inventory reset when reconnecting after disconnecting from within a zone.

This commit is contained in:
taoneill 2011-02-12 12:01:32 -05:00
parent 62503d353c
commit 6b3d55f563
3 changed files with 6 additions and 6 deletions

View File

@ -57,16 +57,16 @@ public class WarPlayerListener extends PlayerListener {
}
}
if(originalContents.getHelmet() != null) {
if(originalContents.getHelmet() != null && originalContents.getHelmet().getType() != Material.AIR) {
playerInv.setHelmet(originalContents.getHelmet());
}
if(originalContents.getChest() != null) {
if(originalContents.getChest() != null && originalContents.getHelmet().getType() != Material.AIR) {
playerInv.setChestplate(originalContents.getChest());
}
if(originalContents.getLegs() != null) {
if(originalContents.getLegs() != null && originalContents.getHelmet().getType() != Material.AIR) {
playerInv.setLeggings(originalContents.getLegs());
}
if(originalContents.getFeet() != null) {
if(originalContents.getFeet() != null && originalContents.getHelmet().getType() != Material.AIR) {
playerInv.setBoots(originalContents.getFeet());
}
}

View File

@ -1,5 +1,5 @@
name: War
version: 0.9 (Simonds)
version: 1.0 (Eisenhower)
description: Lets you create TDM and CTF (warzones) for a more structured PVP experience.
author: tommytony
website: war.tommytony.com

View File

@ -1,5 +1,5 @@
name: War
version: 0.9 (Simonds)
version: 1.0 (Eisenhower)
description: Lets you create TDM and CTF (warzones) for a more structured PVP experience.
author: tommytony
website: war.tommytony.com