mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-13 04:36:44 +00:00
29 lines
693 B
Java
29 lines
693 B
Java
package com.earth2me.essentials.commands;
|
|
|
|
import static com.earth2me.essentials.I18n._;
|
|
import com.earth2me.essentials.Util;
|
|
import org.bukkit.Server;
|
|
import org.bukkit.command.CommandSender;
|
|
|
|
// This command can be used to echo messages to the users screen, mostly useless but also an #EasterEgg
|
|
public class Commandping extends EssentialsCommand
|
|
{
|
|
public Commandping()
|
|
{
|
|
super("ping");
|
|
}
|
|
|
|
@Override
|
|
public void run(final Server server, final CommandSender sender, final String commandLabel, final String[] args) throws Exception
|
|
{
|
|
if (args.length < 1)
|
|
{
|
|
|
|
sender.sendMessage(_("pong"));
|
|
}
|
|
else
|
|
{
|
|
sender.sendMessage(Util.replaceFormat(getFinalArg(args, 0)));
|
|
}
|
|
}
|
|
}
|