Player Manager
interface PlayerManager : FlightManager, GameModeManager, HealthManager, NameManager, RepairManager, SpeedManager, TeleportationManager
Content copied to clipboard
Manages all Player related methods.
Functions
Link copied to clipboard
abstract fun changeGamemode( player: Player, newGameMode: GameMode, silent: Boolean, executor: CommandSender? = null, sendMessage: Boolean = true)
Content copied to clipboard
Change a players gamemode to a new gamemode.
Link copied to clipboard
abstract fun disableFlight( player: Player, silent: Boolean, executor: CommandSender? = null, sendMessage: Boolean = true)
Content copied to clipboard
Disable a players flight.
Link copied to clipboard
abstract fun enableFlight( player: Player, silent: Boolean, executor: CommandSender? = null, sendMessage: Boolean = true)
Content copied to clipboard
Enable flight for a player.
Link copied to clipboard
abstract fun feedPlayer( player: Player, silent: Boolean, executor: CommandSender? = null)
Content copied to clipboard
Feed a player
Link copied to clipboard
Get a list of Player Names that can be used in tab completions.
Link copied to clipboard
Get a target player from their name.
Link copied to clipboard
abstract fun healPlayer( player: Player, silent: Boolean, executor: CommandSender? = null, sendMessage: Boolean = true)
Content copied to clipboard
Heal a given player
Link copied to clipboard
abstract fun setFlySpeed( player: Player, speed: Int, silent: Boolean, executor: CommandSender? = null, sendMessage: Boolean = true)
Content copied to clipboard
Set the flyspeed for a player.
Link copied to clipboard
abstract fun setNickName( uuid: UUID, nickName: String?, silent: Boolean, storageManager: StorageManager, executor: CommandSender? = null)
Content copied to clipboard
Set a players nickname.
Link copied to clipboard
abstract fun setWalkSpeed( player: Player, speed: Int, silent: Boolean, executor: CommandSender? = null, sendMessage: Boolean = true)
Content copied to clipboard
Set the walkspeed for a player.
Link copied to clipboard
Teleport a player to spawn
Link copied to clipboard
open fun toggleFlight( player: Player, silent: Boolean, executor: CommandSender? = null, sendMessage: Boolean = true)
Content copied to clipboard
Toggle flight for a player.
Link copied to clipboard
Method to warp a player to a warp.