PostEnableVoiceEvent
PostEnableVoiceEvent
Event Details
Field
Type
Description
Methods
Method
Return Type
Description
Example Usage
import ir.taher7.melodymine.api.events.PostEnableVoiceEvent;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
public class MyListener implements Listener {
@EventHandler
public void onPostEnableVoice(PostEnableVoiceEvent event) {
// Get the player's name who enabled their voice chat
String playerName = event.getPlayerName();
// Log the player's name to the console
Bukkit.getLogger().info(playerName + " has enabled their voice chat.");
}
}Last updated