Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public boolean onCommand1(CommandSender sender, Command cmd,
- String commandLabel, String[] args) {
- if (cmd.getName().equalsIgnoreCase("praca")) {
- Player p = (Player) sender;
- if (args.length == 0) {
- p.sendMessage("Komendy:");
- p.sendMessage(" /praca opis <nazwa>");
- } else {
- if (args[0].equalsIgnoreCase("opis")) {
- if (args.length == 2) {
- if (sprawdza czy opis istnieje) {
- p.sendMessage("jest");
- return true;
- } else {
- p.sendMessage("nie ma takiego opisu");
- return true;
- }
- } else {
- p.sendMessage("Prawidlowe uzycie: /praca opis <nazwa>");
- }
- }
- }
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement