Dieser Commit ist enthalten in:
Ursprung
6ff7170310
Commit
584ea77419
@ -116,7 +116,7 @@ public class MemberPart extends SWCommand {
|
|||||||
public void addTeam(Player player, @Validator("isOwnerValidator") SchematicNode node) {
|
public void addTeam(Player player, @Validator("isOwnerValidator") SchematicNode node) {
|
||||||
SteamwarUser user = getUser(player);
|
SteamwarUser user = getUser(player);
|
||||||
Team team = Team.get(user.getTeam());
|
Team team = Team.get(user.getTeam());
|
||||||
if (team == null) {
|
if (team == null || team.getTeamId() == 0) {
|
||||||
SchematicSystem.MESSAGE.send("COMMAND_ADD_TEAM_NOT_IN_TEAM", player);
|
SchematicSystem.MESSAGE.send("COMMAND_ADD_TEAM_NOT_IN_TEAM", player);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -128,7 +128,7 @@ public class MemberPart extends SWCommand {
|
|||||||
public void remTeam(Player player, @Validator("isOwnerValidator") SchematicNode node) {
|
public void remTeam(Player player, @Validator("isOwnerValidator") SchematicNode node) {
|
||||||
SteamwarUser user = getUser(player);
|
SteamwarUser user = getUser(player);
|
||||||
Team team = Team.get(user.getTeam());
|
Team team = Team.get(user.getTeam());
|
||||||
if (team == null) {
|
if (team == null || team.getTeamId() == 0) {
|
||||||
SchematicSystem.MESSAGE.send("COMMAND_DEL_TEAM_NOT_IN_TEAM", player);
|
SchematicSystem.MESSAGE.send("COMMAND_DEL_TEAM_NOT_IN_TEAM", player);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren