Class Commands

java.lang.Object
dev.satyrn.xpeconomy.utils.Commands

public final class Commands extends Object
Handles common Command tasks.
  • Method Details

    • getPlayerNames

      public static Collection<String> 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.