2018-09-12 15:53:47 +00:00
|
|
|
package xyz.etztech.qol.commands;
|
|
|
|
|
|
|
|
import net.md_5.bungee.api.ChatColor;
|
|
|
|
import org.bukkit.command.Command;
|
|
|
|
import org.bukkit.command.CommandExecutor;
|
|
|
|
import org.bukkit.command.CommandSender;
|
|
|
|
import xyz.etztech.qol.QoL;
|
|
|
|
|
|
|
|
public class ColorsCommand implements CommandExecutor {
|
|
|
|
|
|
|
|
QoL plugin;
|
|
|
|
|
|
|
|
public ColorsCommand(QoL plugin) {
|
|
|
|
this.plugin = plugin;
|
2020-07-09 14:42:58 +00:00
|
|
|
plugin.getCommand("colors").setExecutor(this);
|
2018-09-12 15:53:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean onCommand(CommandSender commandSender, Command command, String s, String[] strings) {
|
|
|
|
|
|
|
|
String colors = ChatColor.GOLD + "===== Minecraft Colors/Formatting =====" +
|
|
|
|
ChatColor.BLACK + "\n&0 - Black" +
|
|
|
|
ChatColor.DARK_BLUE + "\n&1 - Dark Blue" +
|
|
|
|
ChatColor.DARK_GREEN + "\n&2 - Dark Green" +
|
|
|
|
ChatColor.DARK_AQUA + "\n&3 - Dark Aqua" +
|
|
|
|
ChatColor.DARK_RED + "\n&4 - Dark Red" +
|
|
|
|
ChatColor.DARK_PURPLE + "\n&5 - Dark Purple" +
|
|
|
|
ChatColor.GOLD + "\n&6 - Gold" +
|
|
|
|
ChatColor.GRAY + "\n&7 - Gray" +
|
|
|
|
ChatColor.DARK_GRAY + "\n&8 - Dark Gray" +
|
|
|
|
ChatColor.BLUE + "\n&9 - Blue" +
|
|
|
|
ChatColor.GREEN + "\n&a - Green" +
|
2019-10-03 15:58:55 +00:00
|
|
|
ChatColor.AQUA + "\n&b - Aqua" +
|
2018-09-12 15:53:47 +00:00
|
|
|
ChatColor.RED + "\n&c - Red" +
|
|
|
|
ChatColor.LIGHT_PURPLE + "\n&d - Light Purple" +
|
|
|
|
ChatColor.YELLOW + "\n&e - Yellow" +
|
|
|
|
ChatColor.WHITE + "\n&f - White" +
|
|
|
|
ChatColor.RESET + ChatColor.MAGIC + "\n&k - Obfuscated" +
|
|
|
|
ChatColor.RESET + " (&k - Obfuscated)" +
|
|
|
|
ChatColor.RESET + ChatColor.BOLD + "\n&l - Bold" +
|
|
|
|
ChatColor.RESET + ChatColor.STRIKETHROUGH + "\n&m - Strikethrough" +
|
|
|
|
ChatColor.RESET + ChatColor.UNDERLINE + "\n&n - Underline" +
|
|
|
|
ChatColor.RESET + ChatColor.ITALIC + "\n&o - Italic" +
|
|
|
|
ChatColor.RESET + "\n&r - Reset";
|
|
|
|
commandSender.sendMessage(colors);
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|