Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Set the Title of the L2Character.
- * @param value the new title
- */
- public final void setTitle(String value)
- {
- String msg = null;
- boolean problem = false;
- if (value == null)
- value = "";
- if (this instanceof L2PcInstance && value.length() > 16)
- {
- value = value.substring(0, 15);
- }
- char[] charArray = value.toCharArray();
- for (char e : charArray)
- {
- if (e == (char)10)
- {
- problem=true;
- }
- }
- if (problem)
- {
- _title ="bot";
- msg = "You'are bot ";
- ((L2PcInstance) this).sendMessage(msg);
- Announcements.getInstance().gameAnnounceToAll("AntyBot : player " + ((L2PcInstance) this).getName()+ " was baned L2phx");
- ((L2PcInstance) this).setPunishLevel(L2PcInstance.PunishLevel.ACC, 0);
- }
- else
- {
- _title = value;
- }
- // public final void setTitle(String value) { _title = value; }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement