Package dev.satyrn.xpeconomy.utils
Class Commands
java.lang.Object
dev.satyrn.xpeconomy.utils.Commands
Handles common Command tasks.
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull Optional<? extends org.bukkit.entity.Player>
getOnlinePlayer
(@NotNull String target) Gets a target from all online playersstatic @NotNull Optional<org.bukkit.OfflinePlayer>
Gets a target from all players.static Collection<String>
Gets all player names from the online player list.
-
Method Details
-
getPlayerNames
Gets all player names from the online player list.- Returns:
- All player names from the online player list.
-
getOnlinePlayer
@NotNull public static @NotNull Optional<? extends org.bukkit.entity.Player> getOnlinePlayer(@NotNull @NotNull String target) Gets a target from all online players- Parameters:
target
- The target identifier.- Returns:
- An optional of player.
-
getPlayer
@NotNull public static @NotNull Optional<org.bukkit.OfflinePlayer> getPlayer(@NotNull @NotNull String target) Gets a target from all players.- Parameters:
target
- The target identifier.- Returns:
- An optional of OfflinePlayer.
-