mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-03 19:15:44 +00: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 changed files with 5 additions and 5 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue