TFM-4.3-Reloaded/src/me/StevenLawson/TotalFreedomMod/Commands/Command_rawsay.java

23 lines
744 B
Java
Raw Normal View History

2011-11-21 06:47:19 +00:00
package me.StevenLawson.TotalFreedomMod.Commands;
import me.StevenLawson.TotalFreedomMod.TFM_Util;
import org.apache.commons.lang.StringUtils;
2011-11-21 06:47:19 +00:00
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
@CommandPermissions(level = ADMIN_LEVEL.SENIOR, source = SOURCE_TYPE_ALLOWED.ONLY_CONSOLE, block_web_console = true, ignore_permissions = false)
2011-11-21 06:47:19 +00:00
public class Command_rawsay extends TFM_Command
{
@Override
public boolean run(CommandSender sender, Player sender_p, Command cmd, String commandLabel, String[] args, boolean senderIsConsole)
{
if (args.length > 0)
2011-11-21 06:47:19 +00:00
{
TFM_Util.bcastMsg(StringUtils.join(args, " "));
2011-11-21 06:47:19 +00:00
}
2011-11-21 06:47:19 +00:00
return true;
}
}