Skip to content

Commit

Permalink
Accept /pwp
Browse files Browse the repository at this point in the history
  • Loading branch information
TonimatasDEV committed Mar 27, 2024
1 parent 6ed74e3 commit 3b1ecbc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public PrimaryCommand() {
@Override
public boolean execute(CommandSender sender, String commandLabel, String[] args) {
// If the command is PerWorldPlugins and has 1 argument, it executes.
if (commandLabel.equalsIgnoreCase("perworldplugins") && args.length == 1) {
if ((commandLabel.equalsIgnoreCase("perworldplugins") || commandLabel.equalsIgnoreCase("pwp")) && args.length == 1) {
if (args[0].equalsIgnoreCase("version")) { // Detects if the argument is equal to "version".

// Detects if the sender has the permission "perworldplugins.version".
Expand Down

0 comments on commit 3b1ecbc

Please sign in to comment.