toggleLogger()
toggleLogger Method in MelodyManager Class
toggleLogger Method in MelodyManager ClassMethod Signature
public void toggleLogger(String uuid)Parameters
Parameter
Type
Description
uuid
String
The UUID of the player for whom the logger is to be toggled.
Usage
To use the toggleLogger method in your plugin, you need to import the MelodyManager class and call the method on its instance. Here is an example:
import ir.taher7.melodymine.core.MelodyManager;
public class ExamplePlugin {
public void togglePlayerLogger(String playerUUID) {
MelodyManager.INSTANCE.toggleLogger(playerUUID);
Bukkit.getLogger().info("Toggled logger for player with UUID: " + playerUUID);
}
}In this example, the togglePlayerLogger method in the ExamplePlugin class calls the toggleLogger method on the MelodyManager instance. It then logs a message to the console indicating that the logger has been toggled for the player with the given UUID.
Make sure to replace playerUUID with the actual UUID of the player for whom you want to toggle the logger.
Last updated