Update some Function
Dieser Commit ist enthalten in:
Ursprung
fa9361785b
Commit
234671a8b0
@ -129,6 +129,13 @@ public class PersonalKit {
|
||||
}
|
||||
|
||||
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;
|
||||
updateDB();
|
||||
}
|
||||
@ -148,6 +155,12 @@ public class PersonalKit {
|
||||
updateDB();
|
||||
}
|
||||
|
||||
public void setContainer(ItemStack[] inventory, ItemStack[] armor) {
|
||||
this.armor = getArmorConfig(armor);
|
||||
this.inventory = getInventoryConfig(inventory);
|
||||
updateDB();
|
||||
}
|
||||
|
||||
public void delete() {
|
||||
SQL.update("DELETE FROM `PersonalKit` WHERE KitID = ?");
|
||||
}
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren