Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class PomocCommand
- implements CommandExecutor
- {
- Main plugin;
- public PomocCommand(Main plugin)
- {
- this.plugin = plugin;
- this.plugin.getCommand("pomoc").setExecutor(this);
- }
- public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args)
- {
- if ((sender instanceof Player))
- {
- Player player = (Player)sender;
- for (String c : this.plugin.getConfig().getStringList("pomoc"))
- {
- c = c.replace("&", "ยง");
- c = c.replace("NICK_PLAYER", player.getName());
- player.sendMessage(c);
- }
- }
- else
- {
- sender.sendMessage("To polecenie moze zostac tylko wykonane przez gracza");
- }
- return false;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment