Dieser Commit ist enthalten in:
Ursprung
b34f4022b1
Commit
28f4c89d32
@ -78,7 +78,7 @@ public class ParticleInventory {
|
|||||||
addParticle(particleList, particle, clickable, player);
|
addParticle(particleList, particle, clickable, player);
|
||||||
}
|
}
|
||||||
for (SpecialTeamParticle particle : SpecialTeamParticle.particles) {
|
for (SpecialTeamParticle particle : SpecialTeamParticle.particles) {
|
||||||
if (particle.getTeamId() == 0 || steamwarUser.getTeam() == particle.getTeamId()) {
|
if (particle.getTeamId() == 0 || steamwarUser.getTeam() == particle.getTeamId() || steamwarUser.getUserGroup() != UserGroup.Member) {
|
||||||
addParticle(particleList, particle, true, player);
|
addParticle(particleList, particle, true, player);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -43,31 +43,35 @@ public class LobbyPlayer {
|
|||||||
particle = null;
|
particle = null;
|
||||||
String saved = UserConfig.getConfig(userId, "lobby-particle");
|
String saved = UserConfig.getConfig(userId, "lobby-particle");
|
||||||
if (saved != null) {
|
if (saved != null) {
|
||||||
String[] strings = saved.split("@");
|
try {
|
||||||
switch (strings[0]) {
|
String[] strings = saved.split("@");
|
||||||
case "PlayerParticle":
|
switch (strings[0]) {
|
||||||
particle = PlayerParticle.valueOf(strings[1]);
|
case "PlayerParticle":
|
||||||
break;
|
particle = PlayerParticle.valueOf(strings[1]);
|
||||||
case "TeamParticle":
|
break;
|
||||||
particle = TeamParticle.valueOf(strings[1]);
|
case "TeamParticle":
|
||||||
break;
|
particle = TeamParticle.valueOf(strings[1]);
|
||||||
case "ServerTeamParticle":
|
break;
|
||||||
particle = ServerTeamParticle.valueOf(strings[1]);
|
case "ServerTeamParticle":
|
||||||
break;
|
particle = ServerTeamParticle.valueOf(strings[1]);
|
||||||
case "EventParticle":
|
break;
|
||||||
particle = EventParticle.valueOf(strings[1]);
|
case "EventParticle":
|
||||||
break;
|
particle = EventParticle.valueOf(strings[1]);
|
||||||
case "EventParticleParticipation":
|
break;
|
||||||
particle = EventParticleParticipation.valueOf(strings[1]);
|
case "EventParticleParticipation":
|
||||||
break;
|
particle = EventParticleParticipation.valueOf(strings[1]);
|
||||||
case "EventParticlePlacement":
|
break;
|
||||||
particle = EventParticlePlacement.valueOf(strings[1]);
|
case "EventParticlePlacement":
|
||||||
break;
|
particle = EventParticlePlacement.valueOf(strings[1]);
|
||||||
case "SpecialParticle":
|
break;
|
||||||
particle = SpecialTeamParticle.valueOf(strings[1]);
|
case "SpecialParticle":
|
||||||
break;
|
particle = SpecialTeamParticle.valueOf(strings[1]);
|
||||||
default:
|
break;
|
||||||
break;
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
} catch (Exception e) {
|
||||||
|
setParticle(null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren