- if (CommandLabel.equalsIgnoreCase("healthcraft")) {
- sender.sendMessage(ChatColor.GOLD + "HealthCraft Made By Ninja_Pork");
- return true;
- } else if (CommandLabel.equalsIgnoreCase("heal")) {
- Player player;
- if (sender instanceof Player) {
- player = (Player) sender;
- }
- if (player != null)
- player.sethealth(20);
- return true;
- else
- sender.sendMessage("You are not a player :O");
- return true;
- }
- return false;