PostAcceptCallEvent
Event Details
Property
Type
Description
Example Usage
import ir.taher7.melodymine.api.events.PostAcceptCallEvent;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.plugin.java.JavaPlugin;
public class ExampleListener implements Listener {
private JavaPlugin plugin;
public ExampleListener(JavaPlugin plugin) {
this.plugin = plugin;
}
@EventHandler
public void onPostAcceptCall(PostAcceptCallEvent event) {
String acceptorName = event.getMelodyPlayer().getName();
String initiatorName = event.getTargetPlayer().getName();
plugin.getLogger().info(acceptorName + " has accepted a call from " + initiatorName);
}
}Last updated