Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package me.PLGx_FusionzZ.Plugin;
- 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 Plugin extends JavaPlugin{
- public final Logger logger = Logger.getLogger("Minecraft");
- public static Plugin plugin;
- @Override
- public void onDisable() {
- PluginDescriptionFile pdffile = this.getDescription();
- this.logger.info(pdffile.getName() +"has been Disabled!");
- }
- @Override
- public void onEnable() {
- PluginDescriptionFile pdffile = this.getDescription();
- this.logger.info(pdffile.getName() +"has been Enabled!");
- }
- public boolean onComand(CommandSender sender, Command cmd, String commandLabel, String[] args) {
- Player player = (Player) sender;
- if (commandLabel.equalsIgnoreCase("Send me")) {
- player.sendMessage(ChatColor.BLUE +"Sent");
- }
- return false;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement