mirror of
https://github.com/Minestom/Minestom.git
synced 2025-02-05 06:51:22 +01:00
Rename CommandCondition 'source' to 'sender'
This commit is contained in:
parent
64479b1409
commit
5b98fbeb8b
@ -22,10 +22,10 @@ public interface CommandCondition {
|
||||
* but will instead be the raw command string given by the sender.
|
||||
* You should in this case warn the sender (eg by sending a message) if the condition is unsuccessful.
|
||||
*
|
||||
* @param source the sender of the command
|
||||
* @param sender the sender of the command
|
||||
* @param commandString the raw command string,
|
||||
* null if this is an access request
|
||||
* @return true if the sender has the right to use the command, false otherwise
|
||||
*/
|
||||
boolean canUse(@NotNull CommandSender source, @Nullable String commandString);
|
||||
boolean canUse(@NotNull CommandSender sender, @Nullable String commandString);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user