/*
Copyright (C) 2005 David Green <green@couchpotato.net>
All Rights Reserved.

This file is part of Aelfengard.

Aelfengard is proprietary software. You may not redistribute it without
prior written permission from the copyright holder.
*/

package server.command;

import server.Player;
import server.SyntaxException;

public class ClearCommand extends Command {

    public ClearCommand() {
        super(CommandCategory.SYSTEM, "Clears the output area.");
    }
    
    @Override
    public void run(Player player) throws SyntaxException {
        if (CommandProcessor.nextToken() != null) {
            throw new SyntaxException();
        }
        player.clearScreen();
    }

    @Override
    public String[] getSyntax(Player player) {
        return new String[] { "" };
    }

}