Added missing final modifiers.

This commit is contained in:
MobiusDev
2015-12-26 12:03:36 +00:00
parent cc92e5d062
commit e0d681a17e
974 changed files with 5919 additions and 5917 deletions

View File

@@ -62,12 +62,12 @@ public class ChatsHandler implements ITelnetHandler
{
try
{
String val = command.substring(4);
StringTokenizer st = new StringTokenizer(val);
String name = st.nextToken();
String message = val.substring(name.length() + 1);
L2PcInstance reciever = L2World.getInstance().getPlayer(name);
CreatureSay cs = new CreatureSay(0, ChatType.WHISPER, "Telnet Priv", message);
final String val = command.substring(4);
final StringTokenizer st = new StringTokenizer(val);
final String name = st.nextToken();
final String message = val.substring(name.length() + 1);
final L2PcInstance reciever = L2World.getInstance().getPlayer(name);
final CreatureSay cs = new CreatureSay(0, ChatType.WHISPER, "Telnet Priv", message);
if (reciever != null)
{
reciever.sendPacket(cs);
@@ -89,7 +89,7 @@ public class ChatsHandler implements ITelnetHandler
try
{
command = command.substring(7);
CreatureSay cs = new CreatureSay(0, ChatType.ALLIANCE, "Telnet GM Broadcast from " + _cSocket.getInetAddress().getHostAddress(), command);
final CreatureSay cs = new CreatureSay(0, ChatType.ALLIANCE, "Telnet GM Broadcast from " + _cSocket.getInetAddress().getHostAddress(), command);
AdminData.getInstance().broadcastToGMs(cs);
_print.println("Your Message Has Been Sent To " + getOnlineGMS() + " GM(s).");
}