1.11.4
This commit is contained in:
parent
fb79222c98
commit
eba91312f3
2 changed files with 4 additions and 1 deletions
|
|
@ -240,6 +240,9 @@ public class KitsManager {
|
||||||
for(KitItem item : items){
|
for(KitItem item : items){
|
||||||
if(kit.isAutoArmor()){
|
if(kit.isAutoArmor()){
|
||||||
String id = item.getId();
|
String id = item.getId();
|
||||||
|
if(item.getOriginalItem() != null){
|
||||||
|
id = item.getOriginalItem().getType().name();
|
||||||
|
}
|
||||||
|
|
||||||
//Check if the item must be put in the player equipment
|
//Check if the item must be put in the player equipment
|
||||||
if((id.contains("_HELMET") || id.contains("PLAYER_HEAD") || id.contains("SKULL_ITEM")) && itemHelmet == null && (playerInventory.getHelmet() == null
|
if((id.contains("_HELMET") || id.contains("PLAYER_HEAD") || id.contains("SKULL_ITEM")) && itemHelmet == null && (playerInventory.getHelmet() == null
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
main: pk.ajneb97.PlayerKits2
|
main: pk.ajneb97.PlayerKits2
|
||||||
version: 1.11.3
|
version: 1.11.4
|
||||||
name: PlayerKits2
|
name: PlayerKits2
|
||||||
api-version: 1.13
|
api-version: 1.13
|
||||||
softdepend: [Vault,PlaceholderAPI]
|
softdepend: [Vault,PlaceholderAPI]
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue