Jump to content
  • 0

Say2


Berkas

Question

       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!

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

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

in RequestBypassToServer, doesn't working

Link to comment
Share on other sites

  • 0
            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
Link to comment
Share on other sites

  • 0

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
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...