Advertisement
Guest User

kaka

a guest
Sep 26th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.61 KB | None | 0 0
  1. package me.plugin.tut;
  2.  
  3. import org.bukkit.ChatColor;
  4. import org.bukkit.command.Command;
  5. import org.bukkit.command.CommandSender;
  6. import org.bukkit.plugin.java.JavaPlugin;
  7.  
  8. public class main extends JavaPlugin{
  9.    
  10.  
  11.     public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
  12.        
  13.         if(label.equalsIgnoreCase("testi")){
  14.             sender.sendMessage(ChatColor.AQUA + "Moi §c" + sender.getName() + "§b!");
  15.         }
  16.        
  17.         return true;
  18.     }
  19.  
  20.  
  21. main: me.plugin.tut.main
  22. version: 1.0
  23. name: SaikTutorial
  24.  
  25. commands:
  26.     testi:
  27.         description: Testikomento.
  28.         aliases: [test]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement