mute()
Mute Method in MelodyManager Class
Mute Method in MelodyManager ClassMethod Signature
public void mute(String uuid)Parameters
Parameter
Type
Description
Usage
import ir.taher7.melodymine.core.MelodyManager;
public class YourPluginClass {
public void someMethod() {
// Get the instance of MelodyManager
MelodyManager melodyManager = MelodyManager.INSTANCE;
// Get the UUID of the player to be muted
String playerUUID = "player-uuid-goes-here";
// Mute the player
melodyManager.mute(playerUUID);
// Print a message to the console
Bukkit.getLogger().info("Player with UUID " + playerUUID + " has been muted.");
}
}Last updated