Berkas Posted April 19, 2014 Share Posted April 19, 2014 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 More sharing options...
0 Lioy Posted April 19, 2014 Share Posted April 19, 2014 You should create player command handler ( for / ) or admin command handler ( for //). Link to comment Share on other sites More sharing options...
0 Berkas Posted April 19, 2014 Author Share Posted April 19, 2014 I want make if example player use /test or //test he got logout as you can see in my first topic Link to comment Share on other sites More sharing options...
0 xdem Posted April 19, 2014 Share Posted April 19, 2014 (edited) when you use / prefix it isnt say2 but requestbypasstoserver Edited April 19, 2014 by xdem Link to comment Share on other sites More sharing options...
0 SweeTs Posted April 19, 2014 Share Posted April 19, 2014 Or the usercommand handler itself. Link to comment Share on other sites More sharing options...
0 Berkas Posted April 19, 2014 Author Share Posted April 19, 2014 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 More sharing options...
0 xdem Posted April 19, 2014 Share Posted April 19, 2014 (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 April 19, 2014 by xdem Link to comment Share on other sites More sharing options...
0 Berkas Posted April 19, 2014 Author Share Posted April 19, 2014 So okey, for /test create in usercommand, what about //test? For players, not GMs Link to comment Share on other sites More sharing options...
0 xdem Posted April 19, 2014 Share Posted April 19, 2014 (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 April 19, 2014 by xdem Link to comment Share on other sites More sharing options...
Question
Berkas
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