From 5b98fbeb8b4104d9e6ea349c7237622291762dfa Mon Sep 17 00:00:00 2001 From: TheMode Date: Wed, 7 Apr 2021 15:48:05 +0200 Subject: [PATCH] Rename CommandCondition 'source' to 'sender' --- .../server/command/builder/condition/CommandCondition.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/minestom/server/command/builder/condition/CommandCondition.java b/src/main/java/net/minestom/server/command/builder/condition/CommandCondition.java index 181379166..d53f627f8 100644 --- a/src/main/java/net/minestom/server/command/builder/condition/CommandCondition.java +++ b/src/main/java/net/minestom/server/command/builder/condition/CommandCondition.java @@ -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); }