Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package me.Yongblood11.SimpleCommands;
- import java.util.logging.Logger;
- 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 SimpleCommands extends JavaPlugin{
- public static Logger logger = Logger.getLogger("Minecraft");
- public static SimpleCommands 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() + " Version " + pdfFile.getVersion() + " has been enabled!");
- }
- public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args){
- Player player = (Player) sender;
- if(commandLabel.equalsIgnoreCase("tp")){
- player.teleport()
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement