Skip to content

Commit

Permalink
Change permission to view hologram
Browse files Browse the repository at this point in the history
  • Loading branch information
OliverSchlueter committed Mar 3, 2024
1 parent c6d9582 commit 17672c2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions api/src/main/java/de/oliver/fancyholograms/api/Hologram.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 17672c2

Please sign in to comment.