Skip to content

Commit

Permalink
Use PlayerComponent.CONSOLE for console punishments
Browse files Browse the repository at this point in the history
Signed-off-by: BT (calcastor/mame) <43831917+calcastor@users.noreply.github.com>
  • Loading branch information
calcastor committed Dec 29, 2024
1 parent 45e9545 commit 4719646
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
import org.bukkit.entity.Player;
import org.jetbrains.annotations.Nullable;
import tc.oc.pgm.util.Audience;
import tc.oc.pgm.util.UsernameFormatUtils;
import tc.oc.pgm.util.named.NameStyle;
import tc.oc.pgm.util.player.PlayerComponent;
import tc.oc.pgm.util.text.TemporalComponent;
Expand Down Expand Up @@ -174,7 +173,7 @@ public boolean kick(boolean silent) {
.kickPlayer(formatPunishmentScreen(
getConfig(),
isConsole()
? UsernameFormatUtils.CONSOLE_NAME
? PlayerComponent.CONSOLE
: PlayerComponent.player(getIssuerId(), NameStyle.FANCY),
silent));
return true;
Expand Down

0 comments on commit 4719646

Please sign in to comment.