Skip to content

Commit

Permalink
Add AnnoyingSender#equalsSender(CommandSender)
Browse files Browse the repository at this point in the history
  • Loading branch information
srnyx committed Mar 31, 2024
1 parent b235b91 commit 80d5c13
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,18 @@ public AnnoyingPlugin getAnnoyingPlugin() {
return plugin;
}


/**
* Checks if the provided {@link CommandSender} is the same as the {@link #cmdSender}
*
* @param sender the {@link CommandSender} to check
*
* @return if the provided {@link CommandSender} is the same as the {@link #cmdSender}
*/
public boolean equalsSender(@NotNull CommandSender sender) {
return cmdSender.equals(sender);
}

/**
* Returns if the specified {@link #args} index is equal to <b>any</b> of the specified strings (case-insensitive)
*
Expand Down

0 comments on commit 80d5c13

Please sign in to comment.