👨MelodyPlayer
MelodyPlayer
Class
MelodyPlayer
ClassThe MelodyPlayer
class is a data class in Kotlin that represents a player in the MelodyMine system. It contains various properties related to the player's state and actions in the system.
Properties
Property | Type | Description |
---|---|---|
|
| The Bukkit player object. |
|
| The unique identifier of the player in the system. |
|
| The UUID of the player. |
|
| The name of the player. |
|
| The server that the player is currently connected to. |
|
| The ID of the socket connection for the player. |
|
| The verification code for the player. |
|
| Indicates whether the player's voice is active. |
|
| Indicates whether the server is online. |
|
| Indicates whether the web interface is online. |
|
| Indicates whether the player is in admin mode. |
|
| Indicates whether the player is muted. |
|
| Indicates whether the toggle state is on or off. |
|
| Indicates whether the player has muted themselves. |
|
| Indicates whether the player is deafened. |
|
| Indicates whether the player is in a call. |
|
| The player that the current player is in a call with. |
|
| Indicates whether there is a pending call for the player. |
|
| The player that the current player has a pending call with. |
|
| Indicates whether the call toggle state is on or off. |
|
| Indicates whether the player has started a call. |
|
| The pending task for the player. |
|
| Indicates whether the player is talking. |
|
| The boss bar for the player. |
|
| The name tag for the player. |
|
| The list of offers that the player has sent. |
Example Usage
Here is an example of how to use the MelodyPlayer
class in a Java plugin.
In this example, the printPlayerInfo
method retrieves a MelodyPlayer
object from the Storage
class using a UUID, and then prints various properties of the MelodyPlayer
to the console.
Using MelodyManager
to get MelodyPlayer
MelodyManager
to get MelodyPlayer
Here is an example of how to use the getMelodyPlayer
and getMelodyPlayerFromSocketID
methods from MelodyManager
class in a Java plugin.
In this example, the printPlayerInfoFromManager
method retrieves a MelodyPlayer
object from the MelodyManager
class using a UUID and a SocketID, and then prints the ID of the MelodyPlayer
to the console.
Last updated