variables: {despoci.%player%} = false {rog.%player%} = false {gildia.%player%} = false options: tag: &b[&cFacrion&b] perm: &cNie masz uprawnien do tej komendy! command /f [] []: trigger: if arg 1 is not set: send "&5-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-" send "&4UWAGA! Mozesz wybrac zamek tylko raz dokonaj dobrego wyboru!" send "&6/f dolacz despoci &a- dolaczasz do despotow" send "&6/f dolacz rogunci &a- dolaczasz do roguntow" send "&6/f h &a- teleportujesz sie na baze zamku" send "&5-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-" stop if arg 1 is "setdespoci" or "ustawdespoci": if player has permissions "gildia.*": set {gildia.despoci} to location of player send "{@tag} &fUstawiles miejsce &bSpawnu despotow!" else: send "{@perm}" stop if arg 1 is "setrogunci" or "ustawrogunci": if player has permissions "gildia.*": set {gildia.rog} to location of player send "{@tag} &fUstawiles miejsce &bSpawnu Roguntow!" else: send "{@perm}" stop if arg 1 is "home" or "h": if {rog.%player%} is true: if {despoci.%player%} is false: if {gildia.%player%} is true: send "&6Poczekaj 5 sekund." wait 5 seconds teleport player to {gildia.rogunci} stop if {rog.%player%} is false: if {despoci.%player%} is true: if {gildia.%player%} is true: send "&6Poczekaj 5 sekund." wait 5 seconds teleport player to {gildia.despoci} stop if arg 1 is "dolacz": if arg 2 is "despoci": if {gildia.%player%} is false: set {gildia.%player%} to true set {despoci.%player%} to true teleport player to {gildia.despoci} send "&2Poprawnie dolaczyles do gildi Despotow" if arg 2 is "rogunci": if {gildia.%player%} is false: set {gildia.%player%} to true set {rog.%player%} to true teleport player to {gildia.rog} send "&2Poprawnie dolaczyles do gildi &6Roguntow" if arg 1 is "odejdz": if player has permission "gildia.*": set {despoci.%player%} to false set {rog.%player%} to false set {gildia.%player%} to false send "&cOdeszles z gildi" on damage: if {despoci.%attacker%} is true if {despoci.%victim%} is true cancel event else if {rog.%attacker%} is true if {rog.%victim%} is true cancel event on command "f h" or "f home": set {tp::%player%} to true on teleport: {tp::%player%} is true: cancel event set {tp::%player%} to false