SteamWar/SpigotCore
Archiviert
13
0

Merge remote-tracking branch 'origin/multi-kit'

Dieser Commit ist enthalten in:
Lixfel 2021-01-30 17:11:55 +01:00
Commit 905fd00dec

Datei anzeigen

@ -71,6 +71,9 @@ public class PersonalKit {
}
public static PersonalKit create(int userID, String gamemode, String name, ItemStack[] inventory, ItemStack[] armor){
if(armor == null) {
armor = new ItemStack[]{null, null, null, null};
}
SQL.update("INSERT INTO PersonalKit (UserID, GameMode, Name, Inventory, Armor) VALUES (?, ?, ?, ?, ?) ON DUPLICATE KEY UPDATE Inventory = VALUES(Inventory), Armor = VALUES(Armor), Name = VALUES(name)",
userID, gamemode, name, saveInvConfig("Inventory", inventory), saveInvConfig("Armor", armor));
return get(userID, gamemode, name);