SteamWar/SpigotCore
Archiviert
13
0

Fixing Material not found

Dieser Commit ist enthalten in:
Lixfel 2019-11-10 23:55:21 +01:00
Ursprung 5e917150c2
Commit ed452b2856
3 geänderte Dateien mit 11 neuen und 7 gelöschten Zeilen

Datei anzeigen

@ -30,12 +30,16 @@ public class SWItem {
} }
public static Material getMaterial(String material){ public static Material getMaterial(String material){
try{
switch(Core.getVersion()){ switch(Core.getVersion()){
case 14: case 14:
return SWItem_v14.getMaterial(material); return SWItem_v14.getMaterial(material);
default: default:
return SWItem_v12.getMaterial(material); return SWItem_v12.getMaterial(material);
} }
}catch(IllegalArgumentException e){
return Material.STONE;
}
} }
public static Material getDye(int colorCode){ public static Material getDye(int colorCode){

Datei anzeigen

@ -32,7 +32,7 @@ public class SteamwarUser {
id = rs.getInt("id"); id = rs.getInt("id");
uuid = java.util.UUID.fromString(rs.getString("UUID")); uuid = java.util.UUID.fromString(rs.getString("UUID"));
userName = rs.getString("UserName"); userName = rs.getString("UserName");
userGroup = de.steamwar.sql.UserGroup.valueOf(rs.getString("UserGroup")); userGroup = UserGroup.valueOf(rs.getString("UserGroup"));
team = rs.getInt("Team"); team = rs.getInt("Team");
byUUID.put(uuid, this); byUUID.put(uuid, this);