renewData()
renewData
Method in MelodyManager
Class
renewData
Method in MelodyManager
ClassMethod Signature
Parameters
Parameter
Type
Description
data
RenewData
The updated data of the all players.
Example
Here is an example of how to use the renewData
method in another plugin:
In this example, the updatePlayerData
method in the ExamplePlugin
class retrieves the MelodyPlayer
instance for the player using their UUID. It then uses the renewData
method of the MelodyManager
class to update the player's data. If the data is successfully updated, a message is logged to the console. If the player is not found, a warning is logged instead.
Last updated