Fixing Material not found
Dieser Commit ist enthalten in:
Ursprung
5e917150c2
Commit
ed452b2856
@ -30,12 +30,16 @@ public class SWItem {
|
||||
}
|
||||
|
||||
public static Material getMaterial(String material){
|
||||
try{
|
||||
switch(Core.getVersion()){
|
||||
case 14:
|
||||
return SWItem_v14.getMaterial(material);
|
||||
default:
|
||||
return SWItem_v12.getMaterial(material);
|
||||
}
|
||||
}catch(IllegalArgumentException e){
|
||||
return Material.STONE;
|
||||
}
|
||||
}
|
||||
|
||||
public static Material getDye(int colorCode){
|
||||
|
@ -32,7 +32,7 @@ public class SteamwarUser {
|
||||
id = rs.getInt("id");
|
||||
uuid = java.util.UUID.fromString(rs.getString("UUID"));
|
||||
userName = rs.getString("UserName");
|
||||
userGroup = de.steamwar.sql.UserGroup.valueOf(rs.getString("UserGroup"));
|
||||
userGroup = UserGroup.valueOf(rs.getString("UserGroup"));
|
||||
team = rs.getInt("Team");
|
||||
|
||||
byUUID.put(uuid, this);
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren