Guest User

Untitled

a guest
Oct 25th, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. package pomoc;
  2.  
  3. import org.bukkit.command.Command;
  4. import org.bukkit.command.CommandSender;
  5. import org.bukkit.plugin.java.JavaPlugin;
  6.  
  7. public class Main extends JavaPlugin implements CommandExecutor{
  8.  
  9. public void onEnable() {
  10. getCommand("pomoc").setExecutor(this);
  11. }
  12.  
  13.  
  14. public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
  15. if (cmd.getName().equalsIgnoreCase("pomoc")) {
  16. sender.sendMessage(ChatColor.GOLD + "> /gildie " + ChatColor.GRAY + "- informacje o gildiach.");
  17. }
  18. return false;
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment