[trunk] rules from console

git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1337 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
ementalo 2011-05-04 10:06:47 +00:00
parent a61c1591e8
commit 21601e34d2

View File

@ -1,7 +1,7 @@
package com.earth2me.essentials.commands;
import com.earth2me.essentials.User;
import org.bukkit.Server;
import org.bukkit.command.CommandSender;
public class Commandrules extends EssentialsCommand
@ -12,12 +12,12 @@ public class Commandrules extends EssentialsCommand
}
@Override
public void run(Server server, User user, String commandLabel, String[] args) throws Exception
public void run(Server server, CommandSender sender, String commandLabel, String[] args) throws Exception
{
charge(user);
for (String m : ess.getLines(user, "rules", "§cThere are no rules specified yet."))
charge(sender);
for (String m : ess.getLines(sender, "rules", "§cThere are no rules specified yet."))
{
user.sendMessage(m);
sender.sendMessage(m);
}
}
}