Skip to content

Commit

Permalink
1.14.6
Browse files Browse the repository at this point in the history
  • Loading branch information
BenceX100 committed Oct 24, 2024
1 parent 3522dad commit 039c6cf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.artillexstudios</groupId>
<artifactId>AxGraves</artifactId>
<version>1.14.5</version>
<version>1.14.6</version>
<packaging>jar</packaging>

<name>AxGraves</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ public void subCommand(@NotNull CommandSender sender) {

int dTime = CONFIG.getInt("despawn-time-seconds", 180);
for (Grave grave : SpawnedGraves.getGraves()) {
if (!sender.hasPermission("axgraves.list.other") && sender instanceof Player && grave.getPlayer().getUniqueId() != ((Player) sender).getUniqueId()) continue;
if (!sender.hasPermission("axgraves.list.other") &&
sender instanceof Player &&
!grave.getPlayer().equals(sender)
) continue;

final Location l = grave.getLocation();

final Map<String, String> map = Map.of("%player%", grave.getPlayerName(),
Expand Down

0 comments on commit 039c6cf

Please sign in to comment.