12345678910111213141516171819202122232425262728 |
- package me.km.commands;
- import me.km.KajetansMod;
- import me.km.api.Module;
- import me.km.api.ModuleCommand;
- import me.km.api.Utils;
- import me.km.permissions.Permissions;
- import net.minecraft.command.ICommandSender;
- import net.minecraft.util.text.TextComponentString;
- public class CommandSay extends ModuleCommand
- {
- public CommandSay(Module m)
- {
- super("say", m);
- super.setDescription("Lässt den Server sprechen");
- super.setUsage("/say");
- super.setPermission(Permissions.SAY);
- }
- @Override
- public boolean execute(ICommandSender cs, String[] arg)
- {
- KajetansMod.server.getPlayerList().sendMessage(
- new TextComponentString("[§cServer§r] " + Utils.connectSpaces(arg, 0)));
- return true;
- }
- }
|