SteamWar/BungeeCore
Archiviert
13
2

Fix Reasonless Punishments #464

Zusammengeführt
Lixfel hat 1 Commits von reasonless nach master 2023-03-07 15:39:32 +01:00 zusammengeführt
Nur Änderungen aus Commit a0f21a95da werden angezeigt - Alle Commits anzeigen

Datei anzeigen

@ -115,7 +115,7 @@ public class PunishmentCommand {
public PunishmentCommand(String command, Punishment.PunishmentType punishmentType) {
new SWCommand(command, "bungeecore.ban") {
@Register(description = "PUNISHMENT_USAGE")
public void genericCommand(ProxiedPlayer player, String toPunish, String date, String... message) {
public void genericCommand(ProxiedPlayer player, String toPunish, String date, @ErrorMessage(allowEAs = false, value = "PUNISHMENT_USAGE") String... message) {
SteamwarUser punisher = SteamwarUser.get(player.getUniqueId());
if (punishmentType.isNeedsAdmin() && !punisher.getUserGroup().isAdminGroup()) {
return;