Skip to content

Commit 58641f8

Browse files
committed
Add performance note to PlayerArgument javadocs
Copied from the documentation for more visibility https://commandapi.jorel.dev/9.5.0/argument_entities.html#player-argument
1 parent b440802 commit 58641f8

File tree

1 file changed

+4
-1
lines changed
  • commandapi-platforms/commandapi-bukkit/commandapi-bukkit-core/src/main/java/dev/jorel/commandapi/arguments

1 file changed

+4
-1
lines changed

commandapi-platforms/commandapi-bukkit/commandapi-bukkit-core/src/main/java/dev/jorel/commandapi/arguments/PlayerArgument.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@
2727
import org.bukkit.entity.Player;
2828

2929
/**
30-
* An argument that represents the Bukkit Player object
30+
* An argument that represents the Bukkit Player object.
31+
* <p>
32+
* Note that this Argument internally references Mojang's authentication servers to resolve
33+
* usernames, which gives it a slight performance overhead compared to {@link EntitySelectorArgument.OnePlayer}.
3134
*
3235
* @since 1.1
3336
*/

0 commit comments

Comments
 (0)