mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-02-22 15:22:47 +01:00
[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:
parent
a61c1591e8
commit
21601e34d2
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user