No Schem Sharing & No Schem Receiving #196
@ -67,11 +67,9 @@ public class ResetCommand extends SWCommand {
|
||||
Region region = regionCheck(p);
|
||||
if (region == null) return;
|
||||
|
||||
if (bauServer.getOwner() != p.getUniqueId()) {
|
||||
if (Punishment.isPunished(SteamwarUser.get(p.getUniqueId()), Punishment.PunishmentType.NoSchemSharing, punishment -> BauSystem.MESSAGE.parse("REGION_TB_NO_SCHEMSHARING", p, punishment.getEndTime()))) {
|
||||
|
||||
return;
|
||||
}
|
||||
} else if (Punishment.isPunished(SteamwarUser.get(bauServer.getOwner()), Punishment.PunishmentType.NoSchemReceiving, punishment -> BauSystem.MESSAGE.parse("REGION_TB_NO_SCHEMRECEIVING", p, punishment.getEndTime()))) {
|
||||
} else if (p.getUniqueId() != bauServer.getOwner() && Punishment.isPunished(SteamwarUser.get(bauServer.getOwner()), Punishment.PunishmentType.NoSchemReceiving, punishment -> BauSystem.MESSAGE.parse("REGION_TB_NO_SCHEMRECEIVING", p, punishment.getEndTime()))) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -92,11 +92,9 @@ public class TestblockCommand extends SWCommand {
|
||||
return;
|
||||
}
|
||||
|
||||
if (bauServer.getOwner() != p.getUniqueId()) {
|
||||
if (Punishment.isPunished(SteamwarUser.get(p.getUniqueId()), Punishment.PunishmentType.NoSchemSharing, punishment -> BauSystem.MESSAGE.parse("REGION_TB_NO_SCHEMSHARING", p, punishment.getEndTime()))) {
|
||||
Lixfel
hat
Soweit ich das sehe ist die gleiche Logik hier doppelt implementiert. Evtl. wäre es sinnvoll, diese in eine Methode auszulagern. Soweit ich das sehe ist die gleiche Logik hier doppelt implementiert. Evtl. wäre es sinnvoll, diese in eine Methode auszulagern.
|
||||
return;
|
||||
}
|
||||
} else if (Punishment.isPunished(SteamwarUser.get(bauServer.getOwner()), Punishment.PunishmentType.NoSchemReceiving, punishment -> BauSystem.MESSAGE.parse("REGION_TB_NO_SCHEMRECEIVING", p, punishment.getEndTime()))) {
|
||||
} else if (p.getUniqueId() != bauServer.getOwner() && Punishment.isPunished(SteamwarUser.get(bauServer.getOwner()), Punishment.PunishmentType.NoSchemReceiving, punishment -> BauSystem.MESSAGE.parse("REGION_TB_NO_SCHEMRECEIVING", p, punishment.getEndTime()))) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren
Testblock pasten sollte selbst mit Noschemsharing auf dem eigenen Bau noch gehen.