Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Ursprung
70c86f40c6
Commit
a8112eccc8
@ -104,10 +104,7 @@ public class Kit {
|
|||||||
public Kit(ConfigurationSection kit){
|
public Kit(ConfigurationSection kit){
|
||||||
name = kit.getName();
|
name = kit.getName();
|
||||||
inventory = Objects.requireNonNull(kit.getList("Items")).toArray(new ItemStack[0]);
|
inventory = Objects.requireNonNull(kit.getList("Items")).toArray(new ItemStack[0]);
|
||||||
if(kit.isList("Armor"))
|
|
||||||
armor = Objects.requireNonNull(kit.getList("Armor")).toArray(new ItemStack[0]);
|
armor = Objects.requireNonNull(kit.getList("Armor")).toArray(new ItemStack[0]);
|
||||||
else
|
|
||||||
armor = null;
|
|
||||||
leaderAllowed = kit.getBoolean("LeaderAllowed");
|
leaderAllowed = kit.getBoolean("LeaderAllowed");
|
||||||
memberAllowed = kit.getBoolean("MemberAllowed");
|
memberAllowed = kit.getBoolean("MemberAllowed");
|
||||||
if(kit.isList("Effects"))
|
if(kit.isList("Effects"))
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren