mirror of
https://github.com/essentials/Essentials.git
synced 2025-10-02 00:56:55 +02:00
git-svn-id: https://svn.java.net/svn/essentials~svn/trunk2.1@1015 e251c2fe-e539-e718-e476-b85c1f46cddb
26 lines
579 B
Java
26 lines
579 B
Java
package com.earth2me.essentials.commands;
|
|
|
|
import org.bukkit.Server;
|
|
import com.earth2me.essentials.Essentials;
|
|
import com.earth2me.essentials.User;
|
|
import org.bukkit.command.CommandSender;
|
|
|
|
|
|
public class Commandmotd extends EssentialsCommand
|
|
{
|
|
public Commandmotd()
|
|
{
|
|
super("motd");
|
|
}
|
|
|
|
@Override
|
|
public void run(Server server, Essentials parent, CommandSender sender, String commandLabel, String[] args) throws Exception
|
|
{
|
|
User.charge(sender, this);
|
|
for (String m : parent.getMotd(sender, "§cThere is no message of the day."))
|
|
{
|
|
sender.sendMessage(m);
|
|
}
|
|
}
|
|
}
|