Skip to content

Commit

Permalink
remove grim.brand.exempt because it causes npes
Browse files Browse the repository at this point in the history
  • Loading branch information
ManInMyVan committed Jan 4, 2025
1 parent 66f6bd7 commit 17927c1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,6 @@ bukkit {
default = Permission.Default.OP
}

register("grim.brand.exempt") {
description = "Do not show this player's client brand"
default = Permission.Default.OP
}

register("grim.sendalert") {
description = "Send cheater alert"
default = Permission.Default.OP
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public void handle(String channel, byte[] data) {

brand = new String(minusLength).replace(" (Velocity)", ""); //removes velocity's brand suffix
brand = ChatColor.stripColor(brand); //strip color codes from client brand
if (!GrimAPI.INSTANCE.getConfigManager().isIgnoredClient(brand) && !player.bukkitPlayer.hasPermission("grim.brand.exempt")) {
if (!GrimAPI.INSTANCE.getConfigManager().isIgnoredClient(brand)) {
String message = GrimAPI.INSTANCE.getConfigManager().getConfig().getStringElse("client-brand-format", "%prefix% &f%player% joined using %brand%");
message = MessageUtil.replacePlaceholders(player, message);

Expand Down

0 comments on commit 17927c1

Please sign in to comment.