Jump to content

Question

Posted

       if(_text.equals("/test") || _text.equals("//test"))
       {
          activeChar.sendPacket(ActionFailed.STATIC_PACKET);
          activeChar.logout();
          return;
       }

Hello, I add this in Say2, why it isn't working? Also doesn't working with // and etc.

Thanks for help!

8 answers to this question

Recommended Posts

  • 0
Posted (edited)

when you use / prefix it isnt say2 but requestbypasstoserver

Edited by xdem
  • 0
Posted
            else if(_command.equals("/test") || _command.equals("//test"))
              {
                 activeChar.sendPacket(ActionFailed.STATIC_PACKET);
                 activeChar.logout();
                 return;
              }

in RequestBypassToServer, doesn't working

  • 0
Posted (edited)
            else if(_command.equals("/test") || _command.equals("//test"))
              {
                 activeChar.sendPacket(ActionFailed.STATIC_PACKET);
                 activeChar.logout();
                 return;
              }

in RequestBypassToServer, doesn't working

 

 

 

the bypasss itself isn't /test dude. its something like -v test or voicecommand test I dont remember, just use the commandhandler provided by ur pack jesus

 

PS: // commands are always comming into the server as admin commands or they never leave ur client unless you have gm access

Edited by xdem
  • 0
Posted (edited)

So okey, for /test create in usercommand, what about //test? For players, not GMs

 

if it never leaves client due to the lack of privilages theres no possible way

 

use phx to find out

Edited by xdem
Guest
This topic is now closed to further replies.


×
×
  • Create New...