mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-08-04 19:46:27 +00:00
Support /me in console
This commit is contained in:
parent
c4173c0486
commit
9ba9223632
1 changed files with 15 additions and 0 deletions
|
@ -4,6 +4,7 @@ import static com.earth2me.essentials.I18n._;
|
||||||
import com.earth2me.essentials.User;
|
import com.earth2me.essentials.User;
|
||||||
import com.earth2me.essentials.Util;
|
import com.earth2me.essentials.Util;
|
||||||
import org.bukkit.Server;
|
import org.bukkit.Server;
|
||||||
|
import org.bukkit.command.CommandSender;
|
||||||
|
|
||||||
|
|
||||||
public class Commandme extends EssentialsCommand
|
public class Commandme extends EssentialsCommand
|
||||||
|
@ -32,4 +33,18 @@ public class Commandme extends EssentialsCommand
|
||||||
user.setDisplayNick();
|
user.setDisplayNick();
|
||||||
ess.broadcastMessage(user, _("action", user.getDisplayName(), message));
|
ess.broadcastMessage(user, _("action", user.getDisplayName(), message));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void run(Server server, CommandSender sender, String commandLabel, String[] args) throws Exception
|
||||||
|
{
|
||||||
|
if (args.length < 1)
|
||||||
|
{
|
||||||
|
throw new NotEnoughArgumentsException();
|
||||||
|
}
|
||||||
|
|
||||||
|
String message = getFinalArg(args, 0);
|
||||||
|
message = Util.replaceFormat(message);
|
||||||
|
|
||||||
|
ess.getServer().broadcastMessage(_("action", "@", message));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue