Load Telnet handlers only if it is enabled.
This commit is contained in:
parent
f175464185
commit
bb578cfee8
@ -39,6 +39,7 @@ import com.l2jmobius.gameserver.handler.PunishmentHandler;
|
||||
import com.l2jmobius.gameserver.handler.TargetHandler;
|
||||
import com.l2jmobius.gameserver.handler.UserCommandHandler;
|
||||
import com.l2jmobius.gameserver.handler.VoicedCommandHandler;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
|
||||
import handlers.actionhandlers.L2ArtefactInstanceAction;
|
||||
import handlers.actionhandlers.L2DecoyAction;
|
||||
@ -284,6 +285,30 @@ import handlers.targethandlers.affectscope.Square;
|
||||
import handlers.targethandlers.affectscope.SquarePB;
|
||||
import handlers.targethandlers.affectscope.StaticObjectScope;
|
||||
import handlers.targethandlers.affectscope.SummonExceptMaster;
|
||||
import handlers.telnethandlers.chat.Announce;
|
||||
import handlers.telnethandlers.chat.GMChat;
|
||||
import handlers.telnethandlers.chat.Msg;
|
||||
import handlers.telnethandlers.player.AccessLevel;
|
||||
import handlers.telnethandlers.player.Ban;
|
||||
import handlers.telnethandlers.player.BanChat;
|
||||
import handlers.telnethandlers.player.Enchant;
|
||||
import handlers.telnethandlers.player.GMList;
|
||||
import handlers.telnethandlers.player.Give;
|
||||
import handlers.telnethandlers.player.Jail;
|
||||
import handlers.telnethandlers.player.Kick;
|
||||
import handlers.telnethandlers.player.Unban;
|
||||
import handlers.telnethandlers.player.UnbanChat;
|
||||
import handlers.telnethandlers.player.Unjail;
|
||||
import handlers.telnethandlers.server.ForceGC;
|
||||
import handlers.telnethandlers.server.Memusage;
|
||||
import handlers.telnethandlers.server.Performance;
|
||||
import handlers.telnethandlers.server.Purge;
|
||||
import handlers.telnethandlers.server.Reload;
|
||||
import handlers.telnethandlers.server.ServerAbort;
|
||||
import handlers.telnethandlers.server.ServerRestart;
|
||||
import handlers.telnethandlers.server.ServerShutdown;
|
||||
import handlers.telnethandlers.server.Status;
|
||||
import handlers.telnethandlers.server.ThreadPoolDebug;
|
||||
import handlers.usercommandhandlers.ChannelDelete;
|
||||
import handlers.usercommandhandlers.ChannelInfo;
|
||||
import handlers.usercommandhandlers.ChannelLeave;
|
||||
@ -699,6 +724,35 @@ public class MasterHandler
|
||||
}
|
||||
}
|
||||
|
||||
if (Config.TELNET_ENABLED)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new Announce());
|
||||
TelnetServer.getInstance().addHandler(new GMChat());
|
||||
TelnetServer.getInstance().addHandler(new Msg());
|
||||
TelnetServer.getInstance().addHandler(new AccessLevel());
|
||||
TelnetServer.getInstance().addHandler(new Ban());
|
||||
TelnetServer.getInstance().addHandler(new BanChat());
|
||||
TelnetServer.getInstance().addHandler(new Enchant());
|
||||
TelnetServer.getInstance().addHandler(new Give());
|
||||
TelnetServer.getInstance().addHandler(new GMList());
|
||||
TelnetServer.getInstance().addHandler(new Jail());
|
||||
TelnetServer.getInstance().addHandler(new Kick());
|
||||
TelnetServer.getInstance().addHandler(new Unban());
|
||||
TelnetServer.getInstance().addHandler(new UnbanChat());
|
||||
TelnetServer.getInstance().addHandler(new Unjail());
|
||||
TelnetServer.getInstance().addHandler(new ForceGC());
|
||||
TelnetServer.getInstance().addHandler(new Memusage());
|
||||
TelnetServer.getInstance().addHandler(new Performance());
|
||||
TelnetServer.getInstance().addHandler(new Purge());
|
||||
TelnetServer.getInstance().addHandler(new Reload());
|
||||
TelnetServer.getInstance().addHandler(new ServerAbort());
|
||||
TelnetServer.getInstance().addHandler(new ServerRestart());
|
||||
TelnetServer.getInstance().addHandler(new ServerShutdown());
|
||||
TelnetServer.getInstance().addHandler(new Status());
|
||||
TelnetServer.getInstance().addHandler(new ThreadPoolDebug());
|
||||
TelnetServer.getInstance().addHandler(new handlers.telnethandlers.server.Debug());
|
||||
}
|
||||
|
||||
for (IHandler<?, ?> loadInstance : LOAD_INSTANCES)
|
||||
{
|
||||
_log.info(loadInstance.getClass().getSimpleName() + ": Loaded " + loadInstance.size() + " Handlers");
|
||||
|
@ -17,7 +17,6 @@
|
||||
package handlers.telnethandlers.chat;
|
||||
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
import com.l2jmobius.gameserver.util.Broadcast;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
@ -27,10 +26,6 @@ import io.netty.channel.ChannelHandlerContext;
|
||||
*/
|
||||
public class Announce implements ITelnetCommand
|
||||
{
|
||||
private Announce()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommand()
|
||||
{
|
||||
@ -58,9 +53,4 @@ public class Announce implements ITelnetCommand
|
||||
Broadcast.toAllOnlinePlayers(sb.toString());
|
||||
return "Announcement sent!";
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new Announce());
|
||||
}
|
||||
}
|
||||
|
@ -20,7 +20,6 @@ import com.l2jmobius.gameserver.data.xml.impl.AdminData;
|
||||
import com.l2jmobius.gameserver.enums.ChatType;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.CreatureSay;
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
|
||||
@ -29,10 +28,6 @@ import io.netty.channel.ChannelHandlerContext;
|
||||
*/
|
||||
public class GMChat implements ITelnetCommand
|
||||
{
|
||||
private GMChat()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommand()
|
||||
{
|
||||
@ -60,9 +55,4 @@ public class GMChat implements ITelnetCommand
|
||||
AdminData.getInstance().broadcastToGMs(new CreatureSay(0, ChatType.ALLIANCE, "Telnet GM Broadcast", sb.toString()));
|
||||
return "GMChat sent!";
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new GMChat());
|
||||
}
|
||||
}
|
||||
|
@ -21,7 +21,6 @@ import com.l2jmobius.gameserver.model.L2World;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.CreatureSay;
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
|
||||
@ -30,10 +29,6 @@ import io.netty.channel.ChannelHandlerContext;
|
||||
*/
|
||||
public class Msg implements ITelnetCommand
|
||||
{
|
||||
private Msg()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommand()
|
||||
{
|
||||
@ -66,9 +61,4 @@ public class Msg implements ITelnetCommand
|
||||
}
|
||||
return "Couldn't find player with such name.";
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new Msg());
|
||||
}
|
||||
}
|
||||
|
@ -19,7 +19,6 @@ package handlers.telnethandlers.player;
|
||||
import com.l2jmobius.gameserver.model.L2World;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
import com.l2jmobius.gameserver.util.Util;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
@ -29,10 +28,6 @@ import io.netty.channel.ChannelHandlerContext;
|
||||
*/
|
||||
public class AccessLevel implements ITelnetCommand
|
||||
{
|
||||
private AccessLevel()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommand()
|
||||
{
|
||||
@ -61,9 +56,4 @@ public class AccessLevel implements ITelnetCommand
|
||||
}
|
||||
return "Couldn't find player with such name.";
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new AccessLevel());
|
||||
}
|
||||
}
|
||||
|
@ -22,7 +22,6 @@ import com.l2jmobius.gameserver.model.punishment.PunishmentAffect;
|
||||
import com.l2jmobius.gameserver.model.punishment.PunishmentTask;
|
||||
import com.l2jmobius.gameserver.model.punishment.PunishmentType;
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
import com.l2jmobius.gameserver.util.Util;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
@ -32,10 +31,6 @@ import io.netty.channel.ChannelHandlerContext;
|
||||
*/
|
||||
public class Ban implements ITelnetCommand
|
||||
{
|
||||
private Ban()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommand()
|
||||
{
|
||||
@ -86,9 +81,4 @@ public class Ban implements ITelnetCommand
|
||||
}
|
||||
return "Couldn't find player with such name.";
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new Ban());
|
||||
}
|
||||
}
|
||||
|
@ -22,7 +22,6 @@ import com.l2jmobius.gameserver.model.punishment.PunishmentAffect;
|
||||
import com.l2jmobius.gameserver.model.punishment.PunishmentTask;
|
||||
import com.l2jmobius.gameserver.model.punishment.PunishmentType;
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
import com.l2jmobius.gameserver.util.Util;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
@ -32,10 +31,6 @@ import io.netty.channel.ChannelHandlerContext;
|
||||
*/
|
||||
public class BanChat implements ITelnetCommand
|
||||
{
|
||||
private BanChat()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommand()
|
||||
{
|
||||
@ -86,9 +81,4 @@ public class BanChat implements ITelnetCommand
|
||||
}
|
||||
return "Couldn't find player with such name.";
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new BanChat());
|
||||
}
|
||||
}
|
||||
|
@ -22,7 +22,6 @@ import com.l2jmobius.gameserver.model.itemcontainer.Inventory;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.InventoryUpdate;
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
import com.l2jmobius.gameserver.util.GMAudit;
|
||||
import com.l2jmobius.gameserver.util.Util;
|
||||
|
||||
@ -33,10 +32,6 @@ import io.netty.channel.ChannelHandlerContext;
|
||||
*/
|
||||
public class Enchant implements ITelnetCommand
|
||||
{
|
||||
private Enchant()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommand()
|
||||
{
|
||||
@ -168,9 +163,4 @@ public class Enchant implements ITelnetCommand
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new Enchant());
|
||||
}
|
||||
}
|
||||
|
@ -19,7 +19,6 @@ package handlers.telnethandlers.player;
|
||||
import com.l2jmobius.Config;
|
||||
import com.l2jmobius.gameserver.data.xml.impl.AdminData;
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
|
||||
@ -28,10 +27,6 @@ import io.netty.channel.ChannelHandlerContext;
|
||||
*/
|
||||
public class GMList implements ITelnetCommand
|
||||
{
|
||||
private GMList()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommand()
|
||||
{
|
||||
@ -60,9 +55,4 @@ public class GMList implements ITelnetCommand
|
||||
}
|
||||
return "There are currently " + i + " GM(s) online..." + Config.EOL + gms;
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new GMList());
|
||||
}
|
||||
}
|
||||
|
@ -21,7 +21,6 @@ import com.l2jmobius.gameserver.model.L2World;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
import com.l2jmobius.gameserver.util.Util;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
@ -31,10 +30,6 @@ import io.netty.channel.ChannelHandlerContext;
|
||||
*/
|
||||
public class Give implements ITelnetCommand
|
||||
{
|
||||
private Give()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommand()
|
||||
{
|
||||
@ -87,9 +82,4 @@ public class Give implements ITelnetCommand
|
||||
}
|
||||
return "Couldn't find player with such name.";
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new Give());
|
||||
}
|
||||
}
|
||||
|
@ -22,7 +22,6 @@ import com.l2jmobius.gameserver.model.punishment.PunishmentAffect;
|
||||
import com.l2jmobius.gameserver.model.punishment.PunishmentTask;
|
||||
import com.l2jmobius.gameserver.model.punishment.PunishmentType;
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
import com.l2jmobius.gameserver.util.Util;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
@ -32,10 +31,6 @@ import io.netty.channel.ChannelHandlerContext;
|
||||
*/
|
||||
public class Jail implements ITelnetCommand
|
||||
{
|
||||
private Jail()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommand()
|
||||
{
|
||||
@ -86,9 +81,4 @@ public class Jail implements ITelnetCommand
|
||||
}
|
||||
return "Couldn't find player with such name.";
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new Jail());
|
||||
}
|
||||
}
|
||||
|
@ -19,7 +19,6 @@ package handlers.telnethandlers.player;
|
||||
import com.l2jmobius.gameserver.model.L2World;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
|
||||
@ -28,10 +27,6 @@ import io.netty.channel.ChannelHandlerContext;
|
||||
*/
|
||||
public class Kick implements ITelnetCommand
|
||||
{
|
||||
private Kick()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommand()
|
||||
{
|
||||
@ -59,9 +54,4 @@ public class Kick implements ITelnetCommand
|
||||
}
|
||||
return "Couldn't find player with such name.";
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new Kick());
|
||||
}
|
||||
}
|
||||
|
@ -21,7 +21,6 @@ import com.l2jmobius.gameserver.instancemanager.PunishmentManager;
|
||||
import com.l2jmobius.gameserver.model.punishment.PunishmentAffect;
|
||||
import com.l2jmobius.gameserver.model.punishment.PunishmentType;
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
|
||||
@ -61,9 +60,4 @@ public class Unban implements ITelnetCommand
|
||||
}
|
||||
return "Couldn't find player with such name.";
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new Unban());
|
||||
}
|
||||
}
|
||||
|
@ -21,7 +21,6 @@ import com.l2jmobius.gameserver.instancemanager.PunishmentManager;
|
||||
import com.l2jmobius.gameserver.model.punishment.PunishmentAffect;
|
||||
import com.l2jmobius.gameserver.model.punishment.PunishmentType;
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
|
||||
@ -61,9 +60,4 @@ public class UnbanChat implements ITelnetCommand
|
||||
}
|
||||
return "Couldn't find player with such name.";
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new UnbanChat());
|
||||
}
|
||||
}
|
||||
|
@ -21,7 +21,6 @@ import com.l2jmobius.gameserver.instancemanager.PunishmentManager;
|
||||
import com.l2jmobius.gameserver.model.punishment.PunishmentAffect;
|
||||
import com.l2jmobius.gameserver.model.punishment.PunishmentType;
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
|
||||
@ -61,9 +60,4 @@ public class Unjail implements ITelnetCommand
|
||||
}
|
||||
return "Couldn't find player with such name.";
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new Unjail());
|
||||
}
|
||||
}
|
||||
|
@ -48,7 +48,6 @@ import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.AdminForgePacket;
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
import com.l2jmobius.gameserver.taskmanager.DecayTaskManager;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
@ -60,10 +59,6 @@ public class Debug implements ITelnetCommand
|
||||
{
|
||||
private static final Logger LOGGER = Logger.getLogger(Debug.class.getName());
|
||||
|
||||
private Debug()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommand()
|
||||
{
|
||||
@ -461,9 +456,4 @@ public class Debug implements ITelnetCommand
|
||||
cal.set(Calendar.MINUTE, m);
|
||||
return format.format(cal.getTime());
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new Debug());
|
||||
}
|
||||
}
|
||||
|
@ -17,7 +17,6 @@
|
||||
package handlers.telnethandlers.server;
|
||||
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
|
||||
@ -26,10 +25,6 @@ import io.netty.channel.ChannelHandlerContext;
|
||||
*/
|
||||
public class ForceGC implements ITelnetCommand
|
||||
{
|
||||
private ForceGC()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommand()
|
||||
{
|
||||
@ -48,9 +43,4 @@ public class ForceGC implements ITelnetCommand
|
||||
System.gc();
|
||||
return "RAM Used: " + ((Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory()) / 1048576);
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new ForceGC());
|
||||
}
|
||||
}
|
||||
|
@ -20,7 +20,6 @@ import java.text.DecimalFormat;
|
||||
|
||||
import com.l2jmobius.Config;
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
|
||||
@ -29,10 +28,6 @@ import io.netty.channel.ChannelHandlerContext;
|
||||
*/
|
||||
public class Memusage implements ITelnetCommand
|
||||
{
|
||||
private Memusage()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommand()
|
||||
{
|
||||
@ -74,9 +69,4 @@ public class Memusage implements ITelnetCommand
|
||||
sb.append("+----" + Config.EOL);
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new Memusage());
|
||||
}
|
||||
}
|
||||
|
@ -19,7 +19,6 @@ package handlers.telnethandlers.server;
|
||||
import com.l2jmobius.Config;
|
||||
import com.l2jmobius.gameserver.ThreadPoolManager;
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
|
||||
@ -28,10 +27,6 @@ import io.netty.channel.ChannelHandlerContext;
|
||||
*/
|
||||
public class Performance implements ITelnetCommand
|
||||
{
|
||||
private Performance()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommand()
|
||||
{
|
||||
@ -55,9 +50,4 @@ public class Performance implements ITelnetCommand
|
||||
}
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new Performance());
|
||||
}
|
||||
}
|
||||
|
@ -19,7 +19,6 @@ package handlers.telnethandlers.server;
|
||||
import com.l2jmobius.Config;
|
||||
import com.l2jmobius.gameserver.ThreadPoolManager;
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
|
||||
@ -28,10 +27,6 @@ import io.netty.channel.ChannelHandlerContext;
|
||||
*/
|
||||
public class Purge implements ITelnetCommand
|
||||
{
|
||||
private Purge()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommand()
|
||||
{
|
||||
@ -55,9 +50,4 @@ public class Purge implements ITelnetCommand
|
||||
}
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new Purge());
|
||||
}
|
||||
}
|
||||
|
@ -46,7 +46,6 @@ import com.l2jmobius.gameserver.instancemanager.QuestManager;
|
||||
import com.l2jmobius.gameserver.instancemanager.WalkingManager;
|
||||
import com.l2jmobius.gameserver.instancemanager.ZoneManager;
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
import com.l2jmobius.gameserver.scripting.ScriptEngineManager;
|
||||
import com.l2jmobius.gameserver.util.Util;
|
||||
|
||||
@ -59,10 +58,6 @@ public class Reload implements ITelnetCommand
|
||||
{
|
||||
private static final Logger LOGGER = Logger.getLogger(Reload.class.getName());
|
||||
|
||||
private Reload()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommand()
|
||||
{
|
||||
@ -266,9 +261,4 @@ public class Reload implements ITelnetCommand
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new Reload());
|
||||
}
|
||||
}
|
||||
|
@ -18,7 +18,6 @@ package handlers.telnethandlers.server;
|
||||
|
||||
import com.l2jmobius.gameserver.Shutdown;
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
|
||||
@ -27,10 +26,6 @@ import io.netty.channel.ChannelHandlerContext;
|
||||
*/
|
||||
public class ServerAbort implements ITelnetCommand
|
||||
{
|
||||
private ServerAbort()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommand()
|
||||
{
|
||||
@ -49,9 +44,4 @@ public class ServerAbort implements ITelnetCommand
|
||||
Shutdown.getInstance().telnetAbort(ctx.channel().remoteAddress().toString());
|
||||
return "Server shutdown/restart aborted!";
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new ServerAbort());
|
||||
}
|
||||
}
|
||||
|
@ -18,7 +18,6 @@ package handlers.telnethandlers.server;
|
||||
|
||||
import com.l2jmobius.gameserver.Shutdown;
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
import com.l2jmobius.gameserver.util.Util;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
@ -28,10 +27,6 @@ import io.netty.channel.ChannelHandlerContext;
|
||||
*/
|
||||
public class ServerRestart implements ITelnetCommand
|
||||
{
|
||||
private ServerRestart()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommand()
|
||||
{
|
||||
@ -55,9 +50,4 @@ public class ServerRestart implements ITelnetCommand
|
||||
Shutdown.getInstance().startTelnetShutdown(ctx.channel().remoteAddress().toString(), time, true);
|
||||
return "Server will restart in " + time + " seconds!";
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new ServerRestart());
|
||||
}
|
||||
}
|
||||
|
@ -18,7 +18,6 @@ package handlers.telnethandlers.server;
|
||||
|
||||
import com.l2jmobius.gameserver.Shutdown;
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
import com.l2jmobius.gameserver.util.Util;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
@ -28,10 +27,6 @@ import io.netty.channel.ChannelHandlerContext;
|
||||
*/
|
||||
public class ServerShutdown implements ITelnetCommand
|
||||
{
|
||||
private ServerShutdown()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommand()
|
||||
{
|
||||
@ -55,9 +50,4 @@ public class ServerShutdown implements ITelnetCommand
|
||||
Shutdown.getInstance().startTelnetShutdown(ctx.channel().remoteAddress().toString(), time, false);
|
||||
return "Server will shutdown in " + time + " seconds!";
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new ServerShutdown());
|
||||
}
|
||||
}
|
||||
|
@ -17,7 +17,6 @@
|
||||
package handlers.telnethandlers.server;
|
||||
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
|
||||
@ -26,10 +25,6 @@ import io.netty.channel.ChannelHandlerContext;
|
||||
*/
|
||||
public class Status implements ITelnetCommand
|
||||
{
|
||||
private Status()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommand()
|
||||
{
|
||||
@ -47,9 +42,4 @@ public class Status implements ITelnetCommand
|
||||
{
|
||||
return Debug.getServerStatus();
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new Status());
|
||||
}
|
||||
}
|
||||
|
@ -30,7 +30,6 @@ import com.l2jmobius.Config;
|
||||
import com.l2jmobius.gameserver.ThreadPoolManager;
|
||||
import com.l2jmobius.gameserver.ThreadPoolManager.RunnableWrapper;
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
|
||||
@ -169,9 +168,4 @@ public class ThreadPoolDebug implements ITelnetCommand
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new ThreadPoolDebug());
|
||||
}
|
||||
}
|
||||
|
@ -39,6 +39,7 @@ import com.l2jmobius.gameserver.handler.PunishmentHandler;
|
||||
import com.l2jmobius.gameserver.handler.TargetHandler;
|
||||
import com.l2jmobius.gameserver.handler.UserCommandHandler;
|
||||
import com.l2jmobius.gameserver.handler.VoicedCommandHandler;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
|
||||
import handlers.actionhandlers.L2ArtefactInstanceAction;
|
||||
import handlers.actionhandlers.L2DecoyAction;
|
||||
@ -283,6 +284,30 @@ import handlers.targethandlers.affectscope.Square;
|
||||
import handlers.targethandlers.affectscope.SquarePB;
|
||||
import handlers.targethandlers.affectscope.StaticObjectScope;
|
||||
import handlers.targethandlers.affectscope.SummonExceptMaster;
|
||||
import handlers.telnethandlers.chat.Announce;
|
||||
import handlers.telnethandlers.chat.GMChat;
|
||||
import handlers.telnethandlers.chat.Msg;
|
||||
import handlers.telnethandlers.player.AccessLevel;
|
||||
import handlers.telnethandlers.player.Ban;
|
||||
import handlers.telnethandlers.player.BanChat;
|
||||
import handlers.telnethandlers.player.Enchant;
|
||||
import handlers.telnethandlers.player.GMList;
|
||||
import handlers.telnethandlers.player.Give;
|
||||
import handlers.telnethandlers.player.Jail;
|
||||
import handlers.telnethandlers.player.Kick;
|
||||
import handlers.telnethandlers.player.Unban;
|
||||
import handlers.telnethandlers.player.UnbanChat;
|
||||
import handlers.telnethandlers.player.Unjail;
|
||||
import handlers.telnethandlers.server.ForceGC;
|
||||
import handlers.telnethandlers.server.Memusage;
|
||||
import handlers.telnethandlers.server.Performance;
|
||||
import handlers.telnethandlers.server.Purge;
|
||||
import handlers.telnethandlers.server.Reload;
|
||||
import handlers.telnethandlers.server.ServerAbort;
|
||||
import handlers.telnethandlers.server.ServerRestart;
|
||||
import handlers.telnethandlers.server.ServerShutdown;
|
||||
import handlers.telnethandlers.server.Status;
|
||||
import handlers.telnethandlers.server.ThreadPoolDebug;
|
||||
import handlers.usercommandhandlers.ChannelDelete;
|
||||
import handlers.usercommandhandlers.ChannelInfo;
|
||||
import handlers.usercommandhandlers.ChannelLeave;
|
||||
@ -697,6 +722,35 @@ public class MasterHandler
|
||||
}
|
||||
}
|
||||
|
||||
if (Config.TELNET_ENABLED)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new Announce());
|
||||
TelnetServer.getInstance().addHandler(new GMChat());
|
||||
TelnetServer.getInstance().addHandler(new Msg());
|
||||
TelnetServer.getInstance().addHandler(new AccessLevel());
|
||||
TelnetServer.getInstance().addHandler(new Ban());
|
||||
TelnetServer.getInstance().addHandler(new BanChat());
|
||||
TelnetServer.getInstance().addHandler(new Enchant());
|
||||
TelnetServer.getInstance().addHandler(new Give());
|
||||
TelnetServer.getInstance().addHandler(new GMList());
|
||||
TelnetServer.getInstance().addHandler(new Jail());
|
||||
TelnetServer.getInstance().addHandler(new Kick());
|
||||
TelnetServer.getInstance().addHandler(new Unban());
|
||||
TelnetServer.getInstance().addHandler(new UnbanChat());
|
||||
TelnetServer.getInstance().addHandler(new Unjail());
|
||||
TelnetServer.getInstance().addHandler(new ForceGC());
|
||||
TelnetServer.getInstance().addHandler(new Memusage());
|
||||
TelnetServer.getInstance().addHandler(new Performance());
|
||||
TelnetServer.getInstance().addHandler(new Purge());
|
||||
TelnetServer.getInstance().addHandler(new Reload());
|
||||
TelnetServer.getInstance().addHandler(new ServerAbort());
|
||||
TelnetServer.getInstance().addHandler(new ServerRestart());
|
||||
TelnetServer.getInstance().addHandler(new ServerShutdown());
|
||||
TelnetServer.getInstance().addHandler(new Status());
|
||||
TelnetServer.getInstance().addHandler(new ThreadPoolDebug());
|
||||
TelnetServer.getInstance().addHandler(new handlers.telnethandlers.server.Debug());
|
||||
}
|
||||
|
||||
for (IHandler<?, ?> loadInstance : LOAD_INSTANCES)
|
||||
{
|
||||
_log.info(loadInstance.getClass().getSimpleName() + ": Loaded " + loadInstance.size() + " Handlers");
|
||||
|
@ -17,7 +17,6 @@
|
||||
package handlers.telnethandlers.chat;
|
||||
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
import com.l2jmobius.gameserver.util.Broadcast;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
@ -27,10 +26,6 @@ import io.netty.channel.ChannelHandlerContext;
|
||||
*/
|
||||
public class Announce implements ITelnetCommand
|
||||
{
|
||||
private Announce()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommand()
|
||||
{
|
||||
@ -58,9 +53,4 @@ public class Announce implements ITelnetCommand
|
||||
Broadcast.toAllOnlinePlayers(sb.toString());
|
||||
return "Announcement sent!";
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new Announce());
|
||||
}
|
||||
}
|
||||
|
@ -20,7 +20,6 @@ import com.l2jmobius.gameserver.data.xml.impl.AdminData;
|
||||
import com.l2jmobius.gameserver.enums.ChatType;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.CreatureSay;
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
|
||||
@ -29,10 +28,6 @@ import io.netty.channel.ChannelHandlerContext;
|
||||
*/
|
||||
public class GMChat implements ITelnetCommand
|
||||
{
|
||||
private GMChat()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommand()
|
||||
{
|
||||
@ -60,9 +55,4 @@ public class GMChat implements ITelnetCommand
|
||||
AdminData.getInstance().broadcastToGMs(new CreatureSay(0, ChatType.ALLIANCE, "Telnet GM Broadcast", sb.toString()));
|
||||
return "GMChat sent!";
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new GMChat());
|
||||
}
|
||||
}
|
||||
|
@ -21,7 +21,6 @@ import com.l2jmobius.gameserver.model.L2World;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.CreatureSay;
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
|
||||
@ -30,10 +29,6 @@ import io.netty.channel.ChannelHandlerContext;
|
||||
*/
|
||||
public class Msg implements ITelnetCommand
|
||||
{
|
||||
private Msg()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommand()
|
||||
{
|
||||
@ -66,9 +61,4 @@ public class Msg implements ITelnetCommand
|
||||
}
|
||||
return "Couldn't find player with such name.";
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new Msg());
|
||||
}
|
||||
}
|
||||
|
@ -19,7 +19,6 @@ package handlers.telnethandlers.player;
|
||||
import com.l2jmobius.gameserver.model.L2World;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
import com.l2jmobius.gameserver.util.Util;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
@ -29,10 +28,6 @@ import io.netty.channel.ChannelHandlerContext;
|
||||
*/
|
||||
public class AccessLevel implements ITelnetCommand
|
||||
{
|
||||
private AccessLevel()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommand()
|
||||
{
|
||||
@ -61,9 +56,4 @@ public class AccessLevel implements ITelnetCommand
|
||||
}
|
||||
return "Couldn't find player with such name.";
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new AccessLevel());
|
||||
}
|
||||
}
|
||||
|
@ -22,7 +22,6 @@ import com.l2jmobius.gameserver.model.punishment.PunishmentAffect;
|
||||
import com.l2jmobius.gameserver.model.punishment.PunishmentTask;
|
||||
import com.l2jmobius.gameserver.model.punishment.PunishmentType;
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
import com.l2jmobius.gameserver.util.Util;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
@ -32,10 +31,6 @@ import io.netty.channel.ChannelHandlerContext;
|
||||
*/
|
||||
public class Ban implements ITelnetCommand
|
||||
{
|
||||
private Ban()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommand()
|
||||
{
|
||||
@ -86,9 +81,4 @@ public class Ban implements ITelnetCommand
|
||||
}
|
||||
return "Couldn't find player with such name.";
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new Ban());
|
||||
}
|
||||
}
|
||||
|
@ -22,7 +22,6 @@ import com.l2jmobius.gameserver.model.punishment.PunishmentAffect;
|
||||
import com.l2jmobius.gameserver.model.punishment.PunishmentTask;
|
||||
import com.l2jmobius.gameserver.model.punishment.PunishmentType;
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
import com.l2jmobius.gameserver.util.Util;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
@ -32,10 +31,6 @@ import io.netty.channel.ChannelHandlerContext;
|
||||
*/
|
||||
public class BanChat implements ITelnetCommand
|
||||
{
|
||||
private BanChat()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommand()
|
||||
{
|
||||
@ -86,9 +81,4 @@ public class BanChat implements ITelnetCommand
|
||||
}
|
||||
return "Couldn't find player with such name.";
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new BanChat());
|
||||
}
|
||||
}
|
||||
|
@ -22,7 +22,6 @@ import com.l2jmobius.gameserver.model.itemcontainer.Inventory;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.InventoryUpdate;
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
import com.l2jmobius.gameserver.util.GMAudit;
|
||||
import com.l2jmobius.gameserver.util.Util;
|
||||
|
||||
@ -33,10 +32,6 @@ import io.netty.channel.ChannelHandlerContext;
|
||||
*/
|
||||
public class Enchant implements ITelnetCommand
|
||||
{
|
||||
private Enchant()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommand()
|
||||
{
|
||||
@ -168,9 +163,4 @@ public class Enchant implements ITelnetCommand
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new Enchant());
|
||||
}
|
||||
}
|
||||
|
@ -19,7 +19,6 @@ package handlers.telnethandlers.player;
|
||||
import com.l2jmobius.Config;
|
||||
import com.l2jmobius.gameserver.data.xml.impl.AdminData;
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
|
||||
@ -28,10 +27,6 @@ import io.netty.channel.ChannelHandlerContext;
|
||||
*/
|
||||
public class GMList implements ITelnetCommand
|
||||
{
|
||||
private GMList()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommand()
|
||||
{
|
||||
@ -60,9 +55,4 @@ public class GMList implements ITelnetCommand
|
||||
}
|
||||
return "There are currently " + i + " GM(s) online..." + Config.EOL + gms;
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new GMList());
|
||||
}
|
||||
}
|
||||
|
@ -21,7 +21,6 @@ import com.l2jmobius.gameserver.model.L2World;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
import com.l2jmobius.gameserver.util.Util;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
@ -31,10 +30,6 @@ import io.netty.channel.ChannelHandlerContext;
|
||||
*/
|
||||
public class Give implements ITelnetCommand
|
||||
{
|
||||
private Give()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommand()
|
||||
{
|
||||
@ -87,9 +82,4 @@ public class Give implements ITelnetCommand
|
||||
}
|
||||
return "Couldn't find player with such name.";
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new Give());
|
||||
}
|
||||
}
|
||||
|
@ -22,7 +22,6 @@ import com.l2jmobius.gameserver.model.punishment.PunishmentAffect;
|
||||
import com.l2jmobius.gameserver.model.punishment.PunishmentTask;
|
||||
import com.l2jmobius.gameserver.model.punishment.PunishmentType;
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
import com.l2jmobius.gameserver.util.Util;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
@ -32,10 +31,6 @@ import io.netty.channel.ChannelHandlerContext;
|
||||
*/
|
||||
public class Jail implements ITelnetCommand
|
||||
{
|
||||
private Jail()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommand()
|
||||
{
|
||||
@ -86,9 +81,4 @@ public class Jail implements ITelnetCommand
|
||||
}
|
||||
return "Couldn't find player with such name.";
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new Jail());
|
||||
}
|
||||
}
|
||||
|
@ -19,7 +19,6 @@ package handlers.telnethandlers.player;
|
||||
import com.l2jmobius.gameserver.model.L2World;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
|
||||
@ -28,10 +27,6 @@ import io.netty.channel.ChannelHandlerContext;
|
||||
*/
|
||||
public class Kick implements ITelnetCommand
|
||||
{
|
||||
private Kick()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommand()
|
||||
{
|
||||
@ -59,9 +54,4 @@ public class Kick implements ITelnetCommand
|
||||
}
|
||||
return "Couldn't find player with such name.";
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new Kick());
|
||||
}
|
||||
}
|
||||
|
@ -21,7 +21,6 @@ import com.l2jmobius.gameserver.instancemanager.PunishmentManager;
|
||||
import com.l2jmobius.gameserver.model.punishment.PunishmentAffect;
|
||||
import com.l2jmobius.gameserver.model.punishment.PunishmentType;
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
|
||||
@ -61,9 +60,4 @@ public class Unban implements ITelnetCommand
|
||||
}
|
||||
return "Couldn't find player with such name.";
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new Unban());
|
||||
}
|
||||
}
|
||||
|
@ -21,7 +21,6 @@ import com.l2jmobius.gameserver.instancemanager.PunishmentManager;
|
||||
import com.l2jmobius.gameserver.model.punishment.PunishmentAffect;
|
||||
import com.l2jmobius.gameserver.model.punishment.PunishmentType;
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
|
||||
@ -61,9 +60,4 @@ public class UnbanChat implements ITelnetCommand
|
||||
}
|
||||
return "Couldn't find player with such name.";
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new UnbanChat());
|
||||
}
|
||||
}
|
||||
|
@ -21,7 +21,6 @@ import com.l2jmobius.gameserver.instancemanager.PunishmentManager;
|
||||
import com.l2jmobius.gameserver.model.punishment.PunishmentAffect;
|
||||
import com.l2jmobius.gameserver.model.punishment.PunishmentType;
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
|
||||
@ -61,9 +60,4 @@ public class Unjail implements ITelnetCommand
|
||||
}
|
||||
return "Couldn't find player with such name.";
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new Unjail());
|
||||
}
|
||||
}
|
||||
|
@ -48,7 +48,6 @@ import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.AdminForgePacket;
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
import com.l2jmobius.gameserver.taskmanager.DecayTaskManager;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
@ -60,10 +59,6 @@ public class Debug implements ITelnetCommand
|
||||
{
|
||||
private static final Logger LOGGER = Logger.getLogger(Debug.class.getName());
|
||||
|
||||
private Debug()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommand()
|
||||
{
|
||||
@ -461,9 +456,4 @@ public class Debug implements ITelnetCommand
|
||||
cal.set(Calendar.MINUTE, m);
|
||||
return format.format(cal.getTime());
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new Debug());
|
||||
}
|
||||
}
|
||||
|
@ -17,7 +17,6 @@
|
||||
package handlers.telnethandlers.server;
|
||||
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
|
||||
@ -26,10 +25,6 @@ import io.netty.channel.ChannelHandlerContext;
|
||||
*/
|
||||
public class ForceGC implements ITelnetCommand
|
||||
{
|
||||
private ForceGC()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommand()
|
||||
{
|
||||
@ -48,9 +43,4 @@ public class ForceGC implements ITelnetCommand
|
||||
System.gc();
|
||||
return "RAM Used: " + ((Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory()) / 1048576);
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new ForceGC());
|
||||
}
|
||||
}
|
||||
|
@ -20,7 +20,6 @@ import java.text.DecimalFormat;
|
||||
|
||||
import com.l2jmobius.Config;
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
|
||||
@ -29,10 +28,6 @@ import io.netty.channel.ChannelHandlerContext;
|
||||
*/
|
||||
public class Memusage implements ITelnetCommand
|
||||
{
|
||||
private Memusage()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommand()
|
||||
{
|
||||
@ -74,9 +69,4 @@ public class Memusage implements ITelnetCommand
|
||||
sb.append("+----" + Config.EOL);
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new Memusage());
|
||||
}
|
||||
}
|
||||
|
@ -19,7 +19,6 @@ package handlers.telnethandlers.server;
|
||||
import com.l2jmobius.Config;
|
||||
import com.l2jmobius.gameserver.ThreadPoolManager;
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
|
||||
@ -28,10 +27,6 @@ import io.netty.channel.ChannelHandlerContext;
|
||||
*/
|
||||
public class Performance implements ITelnetCommand
|
||||
{
|
||||
private Performance()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommand()
|
||||
{
|
||||
@ -55,9 +50,4 @@ public class Performance implements ITelnetCommand
|
||||
}
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new Performance());
|
||||
}
|
||||
}
|
||||
|
@ -19,7 +19,6 @@ package handlers.telnethandlers.server;
|
||||
import com.l2jmobius.Config;
|
||||
import com.l2jmobius.gameserver.ThreadPoolManager;
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
|
||||
@ -28,10 +27,6 @@ import io.netty.channel.ChannelHandlerContext;
|
||||
*/
|
||||
public class Purge implements ITelnetCommand
|
||||
{
|
||||
private Purge()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommand()
|
||||
{
|
||||
@ -55,9 +50,4 @@ public class Purge implements ITelnetCommand
|
||||
}
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new Purge());
|
||||
}
|
||||
}
|
||||
|
@ -46,7 +46,6 @@ import com.l2jmobius.gameserver.instancemanager.QuestManager;
|
||||
import com.l2jmobius.gameserver.instancemanager.WalkingManager;
|
||||
import com.l2jmobius.gameserver.instancemanager.ZoneManager;
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
import com.l2jmobius.gameserver.scripting.ScriptEngineManager;
|
||||
import com.l2jmobius.gameserver.util.Util;
|
||||
|
||||
@ -59,10 +58,6 @@ public class Reload implements ITelnetCommand
|
||||
{
|
||||
private static final Logger LOGGER = Logger.getLogger(Reload.class.getName());
|
||||
|
||||
private Reload()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommand()
|
||||
{
|
||||
@ -266,9 +261,4 @@ public class Reload implements ITelnetCommand
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new Reload());
|
||||
}
|
||||
}
|
||||
|
@ -18,7 +18,6 @@ package handlers.telnethandlers.server;
|
||||
|
||||
import com.l2jmobius.gameserver.Shutdown;
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
|
||||
@ -27,10 +26,6 @@ import io.netty.channel.ChannelHandlerContext;
|
||||
*/
|
||||
public class ServerAbort implements ITelnetCommand
|
||||
{
|
||||
private ServerAbort()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommand()
|
||||
{
|
||||
@ -49,9 +44,4 @@ public class ServerAbort implements ITelnetCommand
|
||||
Shutdown.getInstance().telnetAbort(ctx.channel().remoteAddress().toString());
|
||||
return "Server shutdown/restart aborted!";
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new ServerAbort());
|
||||
}
|
||||
}
|
||||
|
@ -18,7 +18,6 @@ package handlers.telnethandlers.server;
|
||||
|
||||
import com.l2jmobius.gameserver.Shutdown;
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
import com.l2jmobius.gameserver.util.Util;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
@ -28,10 +27,6 @@ import io.netty.channel.ChannelHandlerContext;
|
||||
*/
|
||||
public class ServerRestart implements ITelnetCommand
|
||||
{
|
||||
private ServerRestart()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommand()
|
||||
{
|
||||
@ -55,9 +50,4 @@ public class ServerRestart implements ITelnetCommand
|
||||
Shutdown.getInstance().startTelnetShutdown(ctx.channel().remoteAddress().toString(), time, true);
|
||||
return "Server will restart in " + time + " seconds!";
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new ServerRestart());
|
||||
}
|
||||
}
|
||||
|
@ -18,7 +18,6 @@ package handlers.telnethandlers.server;
|
||||
|
||||
import com.l2jmobius.gameserver.Shutdown;
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
import com.l2jmobius.gameserver.util.Util;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
@ -28,10 +27,6 @@ import io.netty.channel.ChannelHandlerContext;
|
||||
*/
|
||||
public class ServerShutdown implements ITelnetCommand
|
||||
{
|
||||
private ServerShutdown()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommand()
|
||||
{
|
||||
@ -55,9 +50,4 @@ public class ServerShutdown implements ITelnetCommand
|
||||
Shutdown.getInstance().startTelnetShutdown(ctx.channel().remoteAddress().toString(), time, false);
|
||||
return "Server will shutdown in " + time + " seconds!";
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new ServerShutdown());
|
||||
}
|
||||
}
|
||||
|
@ -17,7 +17,6 @@
|
||||
package handlers.telnethandlers.server;
|
||||
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
|
||||
@ -26,10 +25,6 @@ import io.netty.channel.ChannelHandlerContext;
|
||||
*/
|
||||
public class Status implements ITelnetCommand
|
||||
{
|
||||
private Status()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommand()
|
||||
{
|
||||
@ -47,9 +42,4 @@ public class Status implements ITelnetCommand
|
||||
{
|
||||
return Debug.getServerStatus();
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new Status());
|
||||
}
|
||||
}
|
||||
|
@ -30,7 +30,6 @@ import com.l2jmobius.Config;
|
||||
import com.l2jmobius.gameserver.ThreadPoolManager;
|
||||
import com.l2jmobius.gameserver.ThreadPoolManager.RunnableWrapper;
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
|
||||
@ -169,9 +168,4 @@ public class ThreadPoolDebug implements ITelnetCommand
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new ThreadPoolDebug());
|
||||
}
|
||||
}
|
||||
|
@ -39,6 +39,7 @@ import com.l2jmobius.gameserver.handler.PunishmentHandler;
|
||||
import com.l2jmobius.gameserver.handler.TargetHandler;
|
||||
import com.l2jmobius.gameserver.handler.UserCommandHandler;
|
||||
import com.l2jmobius.gameserver.handler.VoicedCommandHandler;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
|
||||
import handlers.actionhandlers.L2ArtefactInstanceAction;
|
||||
import handlers.actionhandlers.L2DecoyAction;
|
||||
@ -283,6 +284,30 @@ import handlers.targethandlers.affectscope.Square;
|
||||
import handlers.targethandlers.affectscope.SquarePB;
|
||||
import handlers.targethandlers.affectscope.StaticObjectScope;
|
||||
import handlers.targethandlers.affectscope.SummonExceptMaster;
|
||||
import handlers.telnethandlers.chat.Announce;
|
||||
import handlers.telnethandlers.chat.GMChat;
|
||||
import handlers.telnethandlers.chat.Msg;
|
||||
import handlers.telnethandlers.player.AccessLevel;
|
||||
import handlers.telnethandlers.player.Ban;
|
||||
import handlers.telnethandlers.player.BanChat;
|
||||
import handlers.telnethandlers.player.Enchant;
|
||||
import handlers.telnethandlers.player.GMList;
|
||||
import handlers.telnethandlers.player.Give;
|
||||
import handlers.telnethandlers.player.Jail;
|
||||
import handlers.telnethandlers.player.Kick;
|
||||
import handlers.telnethandlers.player.Unban;
|
||||
import handlers.telnethandlers.player.UnbanChat;
|
||||
import handlers.telnethandlers.player.Unjail;
|
||||
import handlers.telnethandlers.server.ForceGC;
|
||||
import handlers.telnethandlers.server.Memusage;
|
||||
import handlers.telnethandlers.server.Performance;
|
||||
import handlers.telnethandlers.server.Purge;
|
||||
import handlers.telnethandlers.server.Reload;
|
||||
import handlers.telnethandlers.server.ServerAbort;
|
||||
import handlers.telnethandlers.server.ServerRestart;
|
||||
import handlers.telnethandlers.server.ServerShutdown;
|
||||
import handlers.telnethandlers.server.Status;
|
||||
import handlers.telnethandlers.server.ThreadPoolDebug;
|
||||
import handlers.usercommandhandlers.ChannelDelete;
|
||||
import handlers.usercommandhandlers.ChannelInfo;
|
||||
import handlers.usercommandhandlers.ChannelLeave;
|
||||
@ -697,6 +722,35 @@ public class MasterHandler
|
||||
}
|
||||
}
|
||||
|
||||
if (Config.TELNET_ENABLED)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new Announce());
|
||||
TelnetServer.getInstance().addHandler(new GMChat());
|
||||
TelnetServer.getInstance().addHandler(new Msg());
|
||||
TelnetServer.getInstance().addHandler(new AccessLevel());
|
||||
TelnetServer.getInstance().addHandler(new Ban());
|
||||
TelnetServer.getInstance().addHandler(new BanChat());
|
||||
TelnetServer.getInstance().addHandler(new Enchant());
|
||||
TelnetServer.getInstance().addHandler(new Give());
|
||||
TelnetServer.getInstance().addHandler(new GMList());
|
||||
TelnetServer.getInstance().addHandler(new Jail());
|
||||
TelnetServer.getInstance().addHandler(new Kick());
|
||||
TelnetServer.getInstance().addHandler(new Unban());
|
||||
TelnetServer.getInstance().addHandler(new UnbanChat());
|
||||
TelnetServer.getInstance().addHandler(new Unjail());
|
||||
TelnetServer.getInstance().addHandler(new ForceGC());
|
||||
TelnetServer.getInstance().addHandler(new Memusage());
|
||||
TelnetServer.getInstance().addHandler(new Performance());
|
||||
TelnetServer.getInstance().addHandler(new Purge());
|
||||
TelnetServer.getInstance().addHandler(new Reload());
|
||||
TelnetServer.getInstance().addHandler(new ServerAbort());
|
||||
TelnetServer.getInstance().addHandler(new ServerRestart());
|
||||
TelnetServer.getInstance().addHandler(new ServerShutdown());
|
||||
TelnetServer.getInstance().addHandler(new Status());
|
||||
TelnetServer.getInstance().addHandler(new ThreadPoolDebug());
|
||||
TelnetServer.getInstance().addHandler(new handlers.telnethandlers.server.Debug());
|
||||
}
|
||||
|
||||
for (IHandler<?, ?> loadInstance : LOAD_INSTANCES)
|
||||
{
|
||||
_log.info(loadInstance.getClass().getSimpleName() + ": Loaded " + loadInstance.size() + " Handlers");
|
||||
|
@ -17,7 +17,6 @@
|
||||
package handlers.telnethandlers.chat;
|
||||
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
import com.l2jmobius.gameserver.util.Broadcast;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
@ -27,10 +26,6 @@ import io.netty.channel.ChannelHandlerContext;
|
||||
*/
|
||||
public class Announce implements ITelnetCommand
|
||||
{
|
||||
private Announce()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommand()
|
||||
{
|
||||
@ -58,9 +53,4 @@ public class Announce implements ITelnetCommand
|
||||
Broadcast.toAllOnlinePlayers(sb.toString());
|
||||
return "Announcement sent!";
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new Announce());
|
||||
}
|
||||
}
|
||||
|
@ -20,7 +20,6 @@ import com.l2jmobius.gameserver.data.xml.impl.AdminData;
|
||||
import com.l2jmobius.gameserver.enums.ChatType;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.CreatureSay;
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
|
||||
@ -29,10 +28,6 @@ import io.netty.channel.ChannelHandlerContext;
|
||||
*/
|
||||
public class GMChat implements ITelnetCommand
|
||||
{
|
||||
private GMChat()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommand()
|
||||
{
|
||||
@ -60,9 +55,4 @@ public class GMChat implements ITelnetCommand
|
||||
AdminData.getInstance().broadcastToGMs(new CreatureSay(0, ChatType.ALLIANCE, "Telnet GM Broadcast", sb.toString()));
|
||||
return "GMChat sent!";
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new GMChat());
|
||||
}
|
||||
}
|
||||
|
@ -21,7 +21,6 @@ import com.l2jmobius.gameserver.model.L2World;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.CreatureSay;
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
|
||||
@ -30,10 +29,6 @@ import io.netty.channel.ChannelHandlerContext;
|
||||
*/
|
||||
public class Msg implements ITelnetCommand
|
||||
{
|
||||
private Msg()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommand()
|
||||
{
|
||||
@ -66,9 +61,4 @@ public class Msg implements ITelnetCommand
|
||||
}
|
||||
return "Couldn't find player with such name.";
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new Msg());
|
||||
}
|
||||
}
|
||||
|
@ -19,7 +19,6 @@ package handlers.telnethandlers.player;
|
||||
import com.l2jmobius.gameserver.model.L2World;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
import com.l2jmobius.gameserver.util.Util;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
@ -29,10 +28,6 @@ import io.netty.channel.ChannelHandlerContext;
|
||||
*/
|
||||
public class AccessLevel implements ITelnetCommand
|
||||
{
|
||||
private AccessLevel()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommand()
|
||||
{
|
||||
@ -61,9 +56,4 @@ public class AccessLevel implements ITelnetCommand
|
||||
}
|
||||
return "Couldn't find player with such name.";
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new AccessLevel());
|
||||
}
|
||||
}
|
||||
|
@ -22,7 +22,6 @@ import com.l2jmobius.gameserver.model.punishment.PunishmentAffect;
|
||||
import com.l2jmobius.gameserver.model.punishment.PunishmentTask;
|
||||
import com.l2jmobius.gameserver.model.punishment.PunishmentType;
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
import com.l2jmobius.gameserver.util.Util;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
@ -32,10 +31,6 @@ import io.netty.channel.ChannelHandlerContext;
|
||||
*/
|
||||
public class Ban implements ITelnetCommand
|
||||
{
|
||||
private Ban()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommand()
|
||||
{
|
||||
@ -86,9 +81,4 @@ public class Ban implements ITelnetCommand
|
||||
}
|
||||
return "Couldn't find player with such name.";
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new Ban());
|
||||
}
|
||||
}
|
||||
|
@ -22,7 +22,6 @@ import com.l2jmobius.gameserver.model.punishment.PunishmentAffect;
|
||||
import com.l2jmobius.gameserver.model.punishment.PunishmentTask;
|
||||
import com.l2jmobius.gameserver.model.punishment.PunishmentType;
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
import com.l2jmobius.gameserver.util.Util;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
@ -32,10 +31,6 @@ import io.netty.channel.ChannelHandlerContext;
|
||||
*/
|
||||
public class BanChat implements ITelnetCommand
|
||||
{
|
||||
private BanChat()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommand()
|
||||
{
|
||||
@ -86,9 +81,4 @@ public class BanChat implements ITelnetCommand
|
||||
}
|
||||
return "Couldn't find player with such name.";
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new BanChat());
|
||||
}
|
||||
}
|
||||
|
@ -22,7 +22,6 @@ import com.l2jmobius.gameserver.model.itemcontainer.Inventory;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.InventoryUpdate;
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
import com.l2jmobius.gameserver.util.GMAudit;
|
||||
import com.l2jmobius.gameserver.util.Util;
|
||||
|
||||
@ -33,10 +32,6 @@ import io.netty.channel.ChannelHandlerContext;
|
||||
*/
|
||||
public class Enchant implements ITelnetCommand
|
||||
{
|
||||
private Enchant()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommand()
|
||||
{
|
||||
@ -168,9 +163,4 @@ public class Enchant implements ITelnetCommand
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new Enchant());
|
||||
}
|
||||
}
|
||||
|
@ -19,7 +19,6 @@ package handlers.telnethandlers.player;
|
||||
import com.l2jmobius.Config;
|
||||
import com.l2jmobius.gameserver.data.xml.impl.AdminData;
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
|
||||
@ -28,10 +27,6 @@ import io.netty.channel.ChannelHandlerContext;
|
||||
*/
|
||||
public class GMList implements ITelnetCommand
|
||||
{
|
||||
private GMList()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommand()
|
||||
{
|
||||
@ -60,9 +55,4 @@ public class GMList implements ITelnetCommand
|
||||
}
|
||||
return "There are currently " + i + " GM(s) online..." + Config.EOL + gms;
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new GMList());
|
||||
}
|
||||
}
|
||||
|
@ -21,7 +21,6 @@ import com.l2jmobius.gameserver.model.L2World;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
import com.l2jmobius.gameserver.util.Util;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
@ -31,10 +30,6 @@ import io.netty.channel.ChannelHandlerContext;
|
||||
*/
|
||||
public class Give implements ITelnetCommand
|
||||
{
|
||||
private Give()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommand()
|
||||
{
|
||||
@ -87,9 +82,4 @@ public class Give implements ITelnetCommand
|
||||
}
|
||||
return "Couldn't find player with such name.";
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new Give());
|
||||
}
|
||||
}
|
||||
|
@ -22,7 +22,6 @@ import com.l2jmobius.gameserver.model.punishment.PunishmentAffect;
|
||||
import com.l2jmobius.gameserver.model.punishment.PunishmentTask;
|
||||
import com.l2jmobius.gameserver.model.punishment.PunishmentType;
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
import com.l2jmobius.gameserver.util.Util;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
@ -32,10 +31,6 @@ import io.netty.channel.ChannelHandlerContext;
|
||||
*/
|
||||
public class Jail implements ITelnetCommand
|
||||
{
|
||||
private Jail()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommand()
|
||||
{
|
||||
@ -86,9 +81,4 @@ public class Jail implements ITelnetCommand
|
||||
}
|
||||
return "Couldn't find player with such name.";
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new Jail());
|
||||
}
|
||||
}
|
||||
|
@ -19,7 +19,6 @@ package handlers.telnethandlers.player;
|
||||
import com.l2jmobius.gameserver.model.L2World;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
|
||||
@ -28,10 +27,6 @@ import io.netty.channel.ChannelHandlerContext;
|
||||
*/
|
||||
public class Kick implements ITelnetCommand
|
||||
{
|
||||
private Kick()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommand()
|
||||
{
|
||||
@ -59,9 +54,4 @@ public class Kick implements ITelnetCommand
|
||||
}
|
||||
return "Couldn't find player with such name.";
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new Kick());
|
||||
}
|
||||
}
|
||||
|
@ -21,7 +21,6 @@ import com.l2jmobius.gameserver.instancemanager.PunishmentManager;
|
||||
import com.l2jmobius.gameserver.model.punishment.PunishmentAffect;
|
||||
import com.l2jmobius.gameserver.model.punishment.PunishmentType;
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
|
||||
@ -61,9 +60,4 @@ public class Unban implements ITelnetCommand
|
||||
}
|
||||
return "Couldn't find player with such name.";
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new Unban());
|
||||
}
|
||||
}
|
||||
|
@ -21,7 +21,6 @@ import com.l2jmobius.gameserver.instancemanager.PunishmentManager;
|
||||
import com.l2jmobius.gameserver.model.punishment.PunishmentAffect;
|
||||
import com.l2jmobius.gameserver.model.punishment.PunishmentType;
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
|
||||
@ -61,9 +60,4 @@ public class UnbanChat implements ITelnetCommand
|
||||
}
|
||||
return "Couldn't find player with such name.";
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new UnbanChat());
|
||||
}
|
||||
}
|
||||
|
@ -21,7 +21,6 @@ import com.l2jmobius.gameserver.instancemanager.PunishmentManager;
|
||||
import com.l2jmobius.gameserver.model.punishment.PunishmentAffect;
|
||||
import com.l2jmobius.gameserver.model.punishment.PunishmentType;
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
|
||||
@ -61,9 +60,4 @@ public class Unjail implements ITelnetCommand
|
||||
}
|
||||
return "Couldn't find player with such name.";
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new Unjail());
|
||||
}
|
||||
}
|
||||
|
@ -48,7 +48,6 @@ import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.AdminForgePacket;
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
import com.l2jmobius.gameserver.taskmanager.DecayTaskManager;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
@ -60,10 +59,6 @@ public class Debug implements ITelnetCommand
|
||||
{
|
||||
private static final Logger LOGGER = Logger.getLogger(Debug.class.getName());
|
||||
|
||||
private Debug()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommand()
|
||||
{
|
||||
@ -461,9 +456,4 @@ public class Debug implements ITelnetCommand
|
||||
cal.set(Calendar.MINUTE, m);
|
||||
return format.format(cal.getTime());
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new Debug());
|
||||
}
|
||||
}
|
||||
|
@ -17,7 +17,6 @@
|
||||
package handlers.telnethandlers.server;
|
||||
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
|
||||
@ -26,10 +25,6 @@ import io.netty.channel.ChannelHandlerContext;
|
||||
*/
|
||||
public class ForceGC implements ITelnetCommand
|
||||
{
|
||||
private ForceGC()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommand()
|
||||
{
|
||||
@ -48,9 +43,4 @@ public class ForceGC implements ITelnetCommand
|
||||
System.gc();
|
||||
return "RAM Used: " + ((Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory()) / 1048576);
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new ForceGC());
|
||||
}
|
||||
}
|
||||
|
@ -20,7 +20,6 @@ import java.text.DecimalFormat;
|
||||
|
||||
import com.l2jmobius.Config;
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
|
||||
@ -29,10 +28,6 @@ import io.netty.channel.ChannelHandlerContext;
|
||||
*/
|
||||
public class Memusage implements ITelnetCommand
|
||||
{
|
||||
private Memusage()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommand()
|
||||
{
|
||||
@ -74,9 +69,4 @@ public class Memusage implements ITelnetCommand
|
||||
sb.append("+----" + Config.EOL);
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new Memusage());
|
||||
}
|
||||
}
|
||||
|
@ -19,7 +19,6 @@ package handlers.telnethandlers.server;
|
||||
import com.l2jmobius.Config;
|
||||
import com.l2jmobius.gameserver.ThreadPoolManager;
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
|
||||
@ -28,10 +27,6 @@ import io.netty.channel.ChannelHandlerContext;
|
||||
*/
|
||||
public class Performance implements ITelnetCommand
|
||||
{
|
||||
private Performance()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommand()
|
||||
{
|
||||
@ -55,9 +50,4 @@ public class Performance implements ITelnetCommand
|
||||
}
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new Performance());
|
||||
}
|
||||
}
|
||||
|
@ -19,7 +19,6 @@ package handlers.telnethandlers.server;
|
||||
import com.l2jmobius.Config;
|
||||
import com.l2jmobius.gameserver.ThreadPoolManager;
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
|
||||
@ -28,10 +27,6 @@ import io.netty.channel.ChannelHandlerContext;
|
||||
*/
|
||||
public class Purge implements ITelnetCommand
|
||||
{
|
||||
private Purge()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommand()
|
||||
{
|
||||
@ -55,9 +50,4 @@ public class Purge implements ITelnetCommand
|
||||
}
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new Purge());
|
||||
}
|
||||
}
|
||||
|
@ -46,7 +46,6 @@ import com.l2jmobius.gameserver.instancemanager.QuestManager;
|
||||
import com.l2jmobius.gameserver.instancemanager.WalkingManager;
|
||||
import com.l2jmobius.gameserver.instancemanager.ZoneManager;
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
import com.l2jmobius.gameserver.scripting.ScriptEngineManager;
|
||||
import com.l2jmobius.gameserver.util.Util;
|
||||
|
||||
@ -59,10 +58,6 @@ public class Reload implements ITelnetCommand
|
||||
{
|
||||
private static final Logger LOGGER = Logger.getLogger(Reload.class.getName());
|
||||
|
||||
private Reload()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommand()
|
||||
{
|
||||
@ -266,9 +261,4 @@ public class Reload implements ITelnetCommand
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new Reload());
|
||||
}
|
||||
}
|
||||
|
@ -18,7 +18,6 @@ package handlers.telnethandlers.server;
|
||||
|
||||
import com.l2jmobius.gameserver.Shutdown;
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
|
||||
@ -27,10 +26,6 @@ import io.netty.channel.ChannelHandlerContext;
|
||||
*/
|
||||
public class ServerAbort implements ITelnetCommand
|
||||
{
|
||||
private ServerAbort()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommand()
|
||||
{
|
||||
@ -49,9 +44,4 @@ public class ServerAbort implements ITelnetCommand
|
||||
Shutdown.getInstance().telnetAbort(ctx.channel().remoteAddress().toString());
|
||||
return "Server shutdown/restart aborted!";
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new ServerAbort());
|
||||
}
|
||||
}
|
||||
|
@ -18,7 +18,6 @@ package handlers.telnethandlers.server;
|
||||
|
||||
import com.l2jmobius.gameserver.Shutdown;
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
import com.l2jmobius.gameserver.util.Util;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
@ -28,10 +27,6 @@ import io.netty.channel.ChannelHandlerContext;
|
||||
*/
|
||||
public class ServerRestart implements ITelnetCommand
|
||||
{
|
||||
private ServerRestart()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommand()
|
||||
{
|
||||
@ -55,9 +50,4 @@ public class ServerRestart implements ITelnetCommand
|
||||
Shutdown.getInstance().startTelnetShutdown(ctx.channel().remoteAddress().toString(), time, true);
|
||||
return "Server will restart in " + time + " seconds!";
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new ServerRestart());
|
||||
}
|
||||
}
|
||||
|
@ -18,7 +18,6 @@ package handlers.telnethandlers.server;
|
||||
|
||||
import com.l2jmobius.gameserver.Shutdown;
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
import com.l2jmobius.gameserver.util.Util;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
@ -28,10 +27,6 @@ import io.netty.channel.ChannelHandlerContext;
|
||||
*/
|
||||
public class ServerShutdown implements ITelnetCommand
|
||||
{
|
||||
private ServerShutdown()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommand()
|
||||
{
|
||||
@ -55,9 +50,4 @@ public class ServerShutdown implements ITelnetCommand
|
||||
Shutdown.getInstance().startTelnetShutdown(ctx.channel().remoteAddress().toString(), time, false);
|
||||
return "Server will shutdown in " + time + " seconds!";
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new ServerShutdown());
|
||||
}
|
||||
}
|
||||
|
@ -17,7 +17,6 @@
|
||||
package handlers.telnethandlers.server;
|
||||
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
|
||||
@ -26,10 +25,6 @@ import io.netty.channel.ChannelHandlerContext;
|
||||
*/
|
||||
public class Status implements ITelnetCommand
|
||||
{
|
||||
private Status()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCommand()
|
||||
{
|
||||
@ -47,9 +42,4 @@ public class Status implements ITelnetCommand
|
||||
{
|
||||
return Debug.getServerStatus();
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new Status());
|
||||
}
|
||||
}
|
||||
|
@ -30,7 +30,6 @@ import com.l2jmobius.Config;
|
||||
import com.l2jmobius.gameserver.ThreadPoolManager;
|
||||
import com.l2jmobius.gameserver.ThreadPoolManager.RunnableWrapper;
|
||||
import com.l2jmobius.gameserver.network.telnet.ITelnetCommand;
|
||||
import com.l2jmobius.gameserver.network.telnet.TelnetServer;
|
||||
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
|
||||
@ -169,9 +168,4 @@ public class ThreadPoolDebug implements ITelnetCommand
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
TelnetServer.getInstance().addHandler(new ThreadPoolDebug());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user