2011-03-19 22:39:51 +00:00
|
|
|
package com.earth2me.essentials.commands;
|
|
|
|
|
2011-05-11 22:42:48 +00:00
|
|
|
import com.earth2me.essentials.Util;
|
2011-03-19 22:39:51 +00:00
|
|
|
import org.bukkit.Server;
|
2011-05-04 10:06:47 +00:00
|
|
|
import org.bukkit.command.CommandSender;
|
2011-03-19 22:39:51 +00:00
|
|
|
|
|
|
|
|
|
|
|
public class Commandrules extends EssentialsCommand
|
|
|
|
{
|
|
|
|
public Commandrules()
|
|
|
|
{
|
|
|
|
super("rules");
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2011-05-04 10:06:47 +00:00
|
|
|
public void run(Server server, CommandSender sender, String commandLabel, String[] args) throws Exception
|
2011-03-19 22:39:51 +00:00
|
|
|
{
|
2011-05-04 10:06:47 +00:00
|
|
|
charge(sender);
|
2011-05-11 22:42:48 +00:00
|
|
|
for (String m : ess.getLines(sender, "rules", Util.i18n("noRules")))
|
2011-03-19 22:39:51 +00:00
|
|
|
{
|
2011-05-04 10:06:47 +00:00
|
|
|
sender.sendMessage(m);
|
2011-03-19 22:39:51 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|