Package net.canarymod.commandsys.commands

Source Code of net.canarymod.commandsys.commands.Motd

package net.canarymod.commandsys.commands;

import net.canarymod.Canary;
import net.canarymod.Translator;
import net.canarymod.chat.MessageReceiver;
import net.canarymod.commandsys.CommandException;
import net.canarymod.commandsys.NativeCommand;
import net.canarymod.config.Configuration;

/**
* Command to view the Message Of The Day
*
* @author Chris (damagefilter)
*/
public class Motd implements NativeCommand {

    public void execute(MessageReceiver caller, String[] parameters) {
        if (caller == null) {
            throw new CommandException(Translator.translateAndFormat("unknown messagereceiver", "null"));
        }
        Canary.motd().sendMOTD(caller);
    }

}
TOP

Related Classes of net.canarymod.commandsys.commands.Motd

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.