package net.sf.l2j.gameserver.model.actor.instance; import java.util.StringTokenizer; import net.sf.l2j.Config; import net.sf.l2j.gameserver.serverpackets.ActionFailed; import net.sf.l2j.gameserver.serverpackets.NpcHtmlMessage; import net.sf.l2j.gameserver.serverpackets.PlaySound; import net.sf.l2j.gameserver.serverpackets.SystemMessage; import net.sf.l2j.gameserver.templates.L2NpcTemplate; import net.sf.l2j.gameserver.util.Broadcast; public class L2JukeboxInstance extends L2FolkInstance { public L2JukeboxInstance(int objectId, L2NpcTemplate template) { super(objectId, template); } public void onAction(L2PcInstance player) { player.setLastFolkNPC(this); super.onAction(player); } private void showJukeboxWindow(L2PcInstance player, String sound) { PlaySound _snd = new PlaySound(1,sound,0,0,0,0,0); player.sendPacket(_snd); player.broadcastPacket(_snd); SystemMessage _sm = new SystemMessage(614); _sm.addString("Playing "+sound+"."); player.sendPacket(_sm); } public void onBypassFeedback(L2PcInstance player, String command) { player.sendPacket(new ActionFailed()); // first do the common stuff // and handle the commands that all NPC classes know //super.onBypassFeedback(player, command); StringTokenizer st = new StringTokenizer(command, " "); String actualCommand = st.nextToken(); // Get actual command if (actualCommand.equalsIgnoreCase("Jukebox")) { showJukeboxWindow(player); } else { // this class dont know any other commands, let forward // the command to the parent class super.onBypassFeedback(player, command); } } public String getHtmlPath(int npcId, int val) { String pom = ""; if (val == 0) pom = "" + npcId; else pom = npcId + "-" + val; return "data/html/jukebox/" + pom + ".htm"; } } ERROR ON COMPILATION : [javac] Compiling 1008 source files to C:\Workspace\AtlantikaServer\build\classes [javac] C:\Workspace\AtlantikaServer\java\net\sf\l2j\gameserver\model\actor\instance\L2JukeboxInstance.java:53: showJukeboxWindow(net.sf.l2j.gameserver.model.actor.instance.L2PcInstance,java.lang.String) in net.sf.l2j.gameserver.model.actor.instance.L2JukeboxInstance cannot be applied to (net.sf.l2j.gameserver.model.actor.instance.L2PcInstance) [javac] showJukeboxWindow(player); [javac] ^ [javac] Note: * uses or overrides a deprecated API. [javac] Note: Recompile with -Xlint:deprecation for details. [javac] Note: Some input files use unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. [javac] 1 error BUILD FAILED C:\Workspace\AtlantikaServer\build.xml:65: Compile failed; see the compiler error output for details. Total time: 12 seconds