Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package me.jamesd5.MasterHealth;
- import java.util.logging.Logger;
- import org.bukkit.ChatColor;
- import org.bukkit.command.Command;
- import org.bukkit.command.CommandSender;
- import org.bukkit.entity.Player;
- import org.bukkit.plugin.PluginDescriptionFile;
- import org.bukkit.plugin.java.JavaPlugin;
- public class MasterHealth extends JavaPlugin{
- public final Logger logger = Logger.getLogger("Minecraft");
- public static MasterHealth plugin;
- @Override
- public void onDisable() {
- PluginDescriptionFile pdfFile = this.getDescription();
- this.logger.info(pdfFile.getName() + "FrozenLemon is disabled! :-: Is it up to date?");
- }
- @Override
- public void onEnable() {
- PluginDescriptionFile pdfFile = this.getDescription();
- this.logger.info(pdfFile.getName() + " Version " + pdfFile.getVersion() + "--FrozenLemon is enabled! Sour. :>");
- }
- public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) {
- if (cmd.getName().equalsIgnoreCase("frozenlemon")) {
- Player player = (Player)sender;
- if (player.hasPermission("frozenlemon.help")) {
- player.sendMessage(ChatColor.YELLOW + "~-~-~-~-~-~-~-~-~-~");//Your message
- player.sendMessage(ChatColor.GREEN + "/fl help -> Lists commands");
- player.sendMessage(ChatColor.GREEN + "/fl info -> Gives info on the Plugin");
- player.sendMessage(ChatColor.GREEN + "/fl food (#1-20) -> Sets food amount");
- player.sendMessage(ChatColor.GREEN + "/fl food reset -> Resets the food amount");
- player.sendMessage(ChatColor.GREEN + "/fl (#1-40) -> Sets health amount");
- player.sendMessage(ChatColor.GREEN + "/fl health reset -> Resets the health amount");
- player.sendMessage(ChatColor.YELLOW + "~-~-~-~-~-~-~-~-~-~");
- }
- else {
- player.sendMessage(ChatColor.RED + "You do not have permission!");
- return false;
- }
- }
- return true;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement