Add plugin

This commit is contained in:
len committed 2021-05-13 14:11:29 +02:00
1 parent 001d64b521
commit 4aa4726a4e
29 files changed
+363 -66

No files matched your search

@@ -0,0 +1,18 @@
package com.alttd.chat.commands;
import com.alttd.chat.ChatPlugin;
import org.apache.commons.lang.StringUtils;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
public class GlobalChat implements CommandExecutor {
@Override
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
String message = StringUtils.join(args, " ", 0, args.length);
ChatPlugin.getInstance().getChatHandler().globalChat(sender, message);
return false;
}
}