Skip to content

Commit

Permalink
Tweaked permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
shantek committed Sep 5, 2024
1 parent 4eff00f commit 90e1e8b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 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>io.shantek</groupId>
<artifactId>DurabilityAlert-Continued</artifactId>
<version>1.6.0</version>
<version>1.6.1</version>
<packaging>jar</packaging>

<properties>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/shantek/CommandHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public boolean onCommand(CommandSender sender, Command cmd, String commandLabel,

Player player = (Player) sender;

if (!player.hasPermission("shantek.durabilityalert.command")) {
if (!player.hasPermission("shantek.durabilityalert.use")) {
player.sendMessage(main.configHandler.prefix + ChatColor.RED + "You do not have permission to use this command.");
return true;
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/shantek/DurabilityListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ private void onItemDamage(PlayerItemDamageEvent event) {
ItemStack item = event.getItem();
Player player = event.getPlayer();

if (!player.hasPermission("shantek.durabilityalert.alert")) {
if (!player.hasPermission("shantek.durabilityalert.use")) {
return;
}

Expand Down
12 changes: 6 additions & 6 deletions src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: DurabilityAlertReloaded
version: 1.6.0
version: 1.6.1
main: io.shantek.DurabilityAlertContinued
api-version: 1.13

Expand All @@ -8,13 +8,13 @@ commands:
usage: /<command>
aliases: [da]
description: the base durabilityalert command
permission: shantek.durabilityalert.command
permission: shantek.durabilityalert.use
permission-message: You do not have permission!

permissions:
shantek.durabilityalert.command:
description: default durability alert command permission
default: op
shantek.durabilityalert.alert:
shantek.durabilityalert.use:
description: allows the user to get durability alerts
default: op
shantek.durabilityalert.reload:
description: ability to reload the plugin
default: op

0 comments on commit 90e1e8b

Please sign in to comment.