Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case '*'://Canal noir
- if(!_perso.get_canaux().contains(packet.charAt(2)+""))return;
- msg = packet.split("\\|",2)[1];
- //Commandes joueurs
- if(msg.charAt(0) == '.')
- {
- //Retour au point de sauvegarde
- if(World.isCommand(msg))
- {
- FastCmd fastCmd = World.getCommand(command);
- new Action(fastCmd.getActionId(), fastCmd.getArgs(), "").apply(_perso, null, 0, -1);
- return;
- }
- if(msg.length() > 4 && msg.substring(1, 5).equalsIgnoreCase("help"))
- {
- String mess = "";
- for(common.World.FastCmd fastCmd : World.getFastCmds())
- {
- if(!mess.isEmpty())
- mess += "\n";
- mess += "- "+fastCmd.getName()+": "+fastCmd.getCommandInfos();
- }
- SocketManager.GAME_SEND_MESSAGE(_perso, mess, Ancestra.CONFIG_MOTD_COLOR);
- return;
- }
- //Tes autres commandes genre .infos etc
- }
- if(_perso.get_fight() == null)
- SocketManager.GAME_SEND_cMK_PACKET_TO_MAP(_perso.get_curCarte(), "", _perso.get_GUID(), _perso.get_name(), msg);
- else
- SocketManager.GAME_SEND_cMK_PACKET_TO_FIGHT(_perso.get_fight(), 7, "", _perso.get_GUID(), _perso.get_name(), msg);
- break;
Advertisement
Add Comment
Please, Sign In to add comment