/*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU General Public License as published by the Free Software
* Foundation, either version 3 of the License, or (at your option) any later
* version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
* details.
*
* You should have received a copy of the GNU General Public License along with
* this program. If not, see .
*/
package handlers.telnethandlers;
import java.io.PrintWriter;
import java.net.Socket;
import com.l2jserver.gameserver.handler.ITelnetHandler;
/**
* @author UnAfraid
*/
public class HelpHandler implements ITelnetHandler
{
private final String[] _commands =
{
"help"
};
@Override
public boolean useCommand(String command, PrintWriter _print, Socket _cSocket, int _uptime)
{
if (command.equals("help"))
{
_print.println("The following is a list of all available commands: ");
_print.println("help - shows this help.");
_print.println("status - displays basic server statistics.");
_print.println("gamestat privatestore - displays info about stores");
_print.println("performance - shows server performance statistics.");
_print.println("forcegc - forced garbage collection.");
_print.println("purge - removes finished threads from thread pools.");
_print.println("memusage - displays memory amounts in JVM.");
_print.println("announce - announces in game.");
_print.println("msg - Sends a whisper to char with .");
_print.println("gmchat - Sends a message to all GMs with .");
_print.println("gmlist - lists all gms online.");
_print.println("kick - kick player from server.");
_print.println("shutdown