Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package me.josh03222.TestPlugin;
- 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("Disabled!");
- }
- public void onDisable(){
- getLogger().info("Enabled!");
- }
- public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args){
- Player player = (Player) sender;
- if(cmd.getName().equalsIgnoreCase("hello")){
- player.sendMessage(ChatColor.AQUA + "<josh03222> Hi!");
- }
- return false;
- }
- }
- ==================
- plugin.yml:
- ==================
- name: Hello
- main: me.Hello.Hello
- version: 0.1
- commands:
- hello:
- description: Hi!!
- usage: /hello
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement