Check you RequestBypassToServer if have .
if dont have add.
String[] str = _command.substring(6).trim().split(" ", 2);
if (str.length == 1)
activeChar.processQuestEvent(str[0], "");
else
activeChar.processQuestEvent(str[0], str[1]);
}
+ else if (_command.startsWith("eventvote"))
+ EventManager.getInstance().addVote(activeChar, Integer.parseInt(_command.substring(10)));
+ else if (_command.startsWith("eventstats"))
+ {
+ try
+ {
+ EventStats.getInstance().showHtml(Integer.parseInt(_command.substring(11)),activeChar);
+ }
+ catch (Exception e)
+ {
+ activeChar.sendMessage("Currently there are no statistics to show.");
+ }
+ }
+ else if (_command.startsWith("eventstats_show"))
+ EventStats.getInstance().showPlayerStats(Integer.parseInt(_command.substring(16)),activeChar);
+ else if (_command.equals("eventbuffershow"))
+ EventBuffer.getInstance().showHtml(activeChar);
+ else if (_command.startsWith("eventbuffer"))
+ {
+ EventBuffer.getInstance().changeList(activeChar, Integer.parseInt(_command.substring(12,_command.length()-2)), (Integer.parseInt(_command.substring(_command.length()-1)) == 0 ? false : true));
+ EventBuffer.getInstance().showHtml(activeChar);
+ }
+ else if (_command.startsWith("eventinfo "))
+ {
+ int eventId = Integer.valueOf(_command.substring(10));
+
+ NpcHtmlMessage html = new NpcHtmlMessage(0);
+ html.setFile("data/html/eventinfo/"+eventId+".htm");
+ activeChar.sendPacket(html);
+ activeChar.sendPacket(ActionFailed.STATIC_PACKET);
+ }
else if (_command.startsWith("_match"))
{
Thanks.