Added missing final modifiers.
This commit is contained in:
@@ -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).");
|
||||
}
|
||||
|
Reference in New Issue
Block a user