Package l2p.gameserver.model

Examples of l2p.gameserver.model.L2Player.reName()


      show(new CustomMessage("scripts.services.Rename.Thisnamealreadyexists", player), player);
      return;
    }
    removeItem(player, Config.SERVICES_CHANGE_NICK_ITEM, Config.SERVICES_CHANGE_NICK_PRICE);
    String oldName = player.getName();
    player.reName(name, true);
    Log.add("Character " + oldName + " renamed to " + name, "renames");
    show(new CustomMessage("scripts.services.Rename.changedname", player).addString(oldName).addString(name), player);
  }

  public void changesex()
View Full Code Here


          {
            activeChar.sendMessage("Name already exist.");
            return false;
          }
          Log.add("Character " + player.getName() + " renamed to " + val + " by GM " + activeChar.getName(), "renames");
          player.reName(val);
          player.sendMessage("Your name has been changed by a GM");
          return true;
        }
        catch(StringIndexOutOfBoundsException e)
        { // Case of empty character name
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.