mirror of
https://github.com/taoneill/war.git
synced 2024-11-27 12:46:11 +01:00
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:
parent
62503d353c
commit
6b3d55f563
@ -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());
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user