SteamWar/SpigotCore
Archiviert
13
0

Update some Function

Dieser Commit ist enthalten in:
Chaoscaot 2021-01-24 15:02:31 +01:00
Ursprung fa9361785b
Commit 234671a8b0

Datei anzeigen

@ -129,6 +129,13 @@ public class PersonalKit {
} }
public void setInUse(boolean inUse) { public void setInUse(boolean inUse) {
setUse(inUse);
PersonalKit kit = getKitInUse(userID, gamemode);
if(kit != null)
kit.setUse(inUse);
}
private void setUse(boolean inUse) {
this.inUse = inUse; this.inUse = inUse;
updateDB(); updateDB();
} }
@ -148,6 +155,12 @@ public class PersonalKit {
updateDB(); updateDB();
} }
public void setContainer(ItemStack[] inventory, ItemStack[] armor) {
this.armor = getArmorConfig(armor);
this.inventory = getInventoryConfig(inventory);
updateDB();
}
public void delete() { public void delete() {
SQL.update("DELETE FROM `PersonalKit` WHERE KitID = ?"); SQL.update("DELETE FROM `PersonalKit` WHERE KitID = ?");
} }