From 17672c2cbbd599a8365bba0dab5f8d2963da94a0 Mon Sep 17 00:00:00 2001 From: OliverSchlueter Date: Sun, 3 Mar 2024 20:45:14 +0100 Subject: [PATCH] Change permission to view hologram --- api/src/main/java/de/oliver/fancyholograms/api/Hologram.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/api/src/main/java/de/oliver/fancyholograms/api/Hologram.java b/api/src/main/java/de/oliver/fancyholograms/api/Hologram.java index 67f7d989..364b0dbc 100644 --- a/api/src/main/java/de/oliver/fancyholograms/api/Hologram.java +++ b/api/src/main/java/de/oliver/fancyholograms/api/Hologram.java @@ -144,8 +144,7 @@ protected boolean shouldHologramBeShown(@NotNull final Player player) { return false; } - if (!getData().getDisplayData().isVisibleByDefault() && - !player.hasPermission("fancyholograms.holo." + data.getName())) { + if (!getData().getDisplayData().isVisibleByDefault() && !player.hasPermission("fancyholograms.viewhologram." + data.getName())) { return false; }