Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package pl.kanciasci.kim;
- import org.bukkit.entity.Player;
- import org.bukkit.event.EventHandler;
- import org.bukkit.event.Listener;
- import org.bukkit.event.player.PlayerJoinEvent;
- import org.bukkit.event.player.PlayerMoveEvent;
- import org.bukkit.Bukkit;
- import org.bukkit.command.Command;
- import org.bukkit.command.CommandSender;
- public class KimSender {
- public boolean onCommand{KimSender sender, Command cmd, String label, String[] args){
- if (cmd.getName().equalisIgnoreCase("Sahee")){
- sender.sendMessage("Sahee, nie sahe albo sahee")
- return true;
- }
- return false;
- }
- }
- /*
- public boolean onCommand(KimSender sender, Command cmd, String label, String[] args){
- if(cmd.getName().equalsIgnoreCase("sahee")){ // If the player typed /basic then do the following...
- // doSomething
- sender.sendMessage("Sahee, nie sahee anie sahe...");
- return true;
- } //If this has happened the function will break and return true. if this hasn't happened the a value of false will be returned.
- return false;
- }*/
- }
Advertisement
Add Comment
Please, Sign In to add comment