rendered paste bodypublic class BasicPluginPlayerListener implements Listener
{
public BasicPlugin plugin;
public BasicPluginPlayerListener(BasicPlugin instance)
{
this.plugin = instance;
}
@EventHandler (priority = EventPriority.HIGH)
public void highPlayerJoin(PlayerJoinEvent event)
{
event.getPlayer().sendMessage("plugin is working!");
}
@EventHandler (priority = EventPriority.NORMAL)
public boolean onCommand(CommandSender sender, Command command, String label, String[] args)
{
if(command.getName().equalsIgnoreCase("command"))
{
sender.sendMessage("command");
return true;
}
return false;
}
}