Skip to content

Commit b9255ab

Browse files
Update sub-command name
1 parent 1d8c253 commit b9255ab

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

src/main/java/com/tcoded/playerbountiesplus/command/PlayerBountiesPlusAdminCmd.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import java.util.stream.Collectors;
1919

2020
public class PlayerBountiesPlusAdminCmd implements CommandExecutor, TabCompleter {
21-
private static final ArrayList<String> completions = Lists.newArrayList("reload", "version", "bounty", "help");
21+
private static final ArrayList<String> completions = Lists.newArrayList("reload", "version", "admin", "help");
2222

2323
private final PlayerBountiesPlus plugin;
2424

@@ -41,7 +41,7 @@ public boolean onCommand(@NotNull CommandSender sender, @NotNull Command command
4141
return PlayerBountiesPlusReloadCmd.handleCmd(plugin, sender, command, label, args);
4242
case "version":
4343
return PlayerBountiesPlusVersionCmd.handleCmd(plugin, sender, command, label, args);
44-
case "bounty":
44+
case "admin":
4545
return AdminBountyCmd.handleCmd(plugin, sender, command, label, args);
4646
default:
4747
sendHelpMsg(sender);

src/main/java/com/tcoded/playerbountiesplus/command/admin/bounty/AdminBountyAddCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
public class AdminBountyAddCmd {
1212

13-
private static final String PERMISSION = "playerbountiesplus.command.playerbountiesplus.bounty.add";
13+
private static final String PERMISSION = "playerbountiesplus.command.playerbountiesplus.admin.add";
1414

1515
public static boolean handleCmd(PlayerBountiesPlus plugin, CommandSender sender, Command cmd, String label, String[] args) {
1616
if (!sender.hasPermission(PERMISSION)) {

src/main/java/com/tcoded/playerbountiesplus/command/admin/bounty/AdminBountyDeleteCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
public class AdminBountyDeleteCmd {
1212

13-
private static final String PERMISSION = "playerbountiesplus.command.playerbountiesplus.bounty.delete";
13+
private static final String PERMISSION = "playerbountiesplus.command.playerbountiesplus.admin.delete";
1414

1515
public static boolean handleCmd(PlayerBountiesPlus plugin, CommandSender sender, Command cmd, String label, String[] args) {
1616
if (!sender.hasPermission(PERMISSION)) {

src/main/java/com/tcoded/playerbountiesplus/command/admin/bounty/AdminBountyRemoveCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
public class AdminBountyRemoveCmd {
1212

13-
private static final String PERMISSION = "playerbountiesplus.command.playerbountiesplus.bounty.remove";
13+
private static final String PERMISSION = "playerbountiesplus.command.playerbountiesplus.admin.remove";
1414

1515
public static boolean handleCmd(PlayerBountiesPlus plugin, CommandSender sender, Command cmd, String label, String[] args) {
1616
if (!sender.hasPermission(PERMISSION)) {

src/main/java/com/tcoded/playerbountiesplus/command/admin/bounty/AdminBountySetCmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
public class AdminBountySetCmd {
1212

13-
private static final String PERMISSION = "playerbountiesplus.command.playerbountiesplus.bounty.set";
13+
private static final String PERMISSION = "playerbountiesplus.command.playerbountiesplus.admin.set";
1414

1515
public static boolean handleCmd(PlayerBountiesPlus plugin, CommandSender sender, Command cmd, String label, String[] args) {
1616
if (!sender.hasPermission(PERMISSION)) {

src/main/resources/plugin.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ permissions:
3232
default: true
3333
playerbountiesplus.command.playerbountiesplus.reload:
3434
default: op
35-
playerbountiesplus.command.playerbountiesplus.bounty.set:
35+
playerbountiesplus.command.playerbountiesplus.admin.set:
3636
default: op
37-
playerbountiesplus.command.playerbountiesplus.bounty.add:
37+
playerbountiesplus.command.playerbountiesplus.admin.add:
3838
default: op
39-
playerbountiesplus.command.playerbountiesplus.bounty.remove:
39+
playerbountiesplus.command.playerbountiesplus.admin.remove:
4040
default: op
41-
playerbountiesplus.command.playerbountiesplus.bounty.delete:
41+
playerbountiesplus.command.playerbountiesplus.admin.delete:
4242
default: op

0 commit comments

Comments
 (0)