Skip to content

Commit d2ae879

Browse files
committed
Remove redundant string permission check in reload command, add plugin description in plugin.yml
1 parent d5b215c commit d2ae879

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

src/main/java/adhdmc/simpleprefixes/command/subcommand/ReloadCommand.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ public ReloadCommand() {
1616

1717
@Override
1818
public void execute(CommandSender sender, String[] args) {
19-
if (!sender.hasPermission("simpleprefixes.reload")) {
20-
sender.sendMessage(Message.INVALID_PERMISSION.getParsedMessage(null));
21-
return;
22-
}
2319
if (!sender.hasPermission(Permission.RELOAD.get())) {
2420
sender.sendMessage(Message.INVALID_PERMISSION.getParsedMessage(null));
2521
return;

src/main/resources/plugin.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: SimplePrefixes
22
version: '${project.version}'
33
main: adhdmc.simpleprefixes.SimplePrefixes
4+
description: "Plugin that aims to allow for simple player-selected prefixes that can be used in chat"
45
api-version: 1.19
56
authors: [ Peashooter101, Rhythmic ]
67
depend: [PlaceholderAPI]

0 commit comments

Comments
 (0)