Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package coloursmraserfiles.jaffas4life;
- import org.bukkit.ChatColor;
- import org.bukkit.command.Command;
- import org.bukkit.command.CommandSender;
- import org.bukkit.entity.Player;
- import org.bukkit.plugin.java.JavaPlugin;
- public class Main extends JavaPlugin
- {
- public void onEnable()
- {
- getLogger().info("Colours Enabled!");
- }
- public void onDisable()
- {
- getLogger().info("Colours Disabled");
- }
- public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args)
- {
- if(sender instanceof Player){
- Player player = (Player) sender;
- if(cmd.getName().equalsIgnoreCase("Colour"))
- { // If the player typed /Colours then this bit
- player.sendMessage(ChatColor.BLACK + "0" + ChatColor.DARK_BLUE + "1" + ChatColor.DARK_GREEN + "2" + ChatColor.DARK_AQUA + "3" + ChatColor.DARK_RED + "4" + ChatColor.DARK_PURPLE + "5" + ChatColor.GOLD + "6" + ChatColor.GRAY + "7" + ChatColor.DARK_GRAY + "8" + ChatColor.LIGHT_PURPLE + "9" + ChatColor.GREEN + "a" + ChatColor.AQUA + "b" + ChatColor.RED + "c" + ChatColor.LIGHT_PURPLE + "d" + ChatColor.GREEN + "e" + ChatColor.WHITE + "f");
- return true;
- } //If this has happened the function will return true.
- // If this hasn't happened the a value of false will be returned.
- return false;
- }
- return false;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement