code_language.skript:
command /job:
trigger:
send "&cWähle einen Job aus:"
json("%player%", "&a&oBürger||ttp:&lAuswählen!||cmd:/bürger")
command /bürger:
trigger:
if {jobcounter} is "1":
send "&cLoliRPMC &8>> &cDu hast bereits einen Job gewählt!"
stop
if {jobcounter} is not set:
set {jobcounter} to 1
send "&cLoliRPMC &8>> &cDu hast erfolgreich den Job &aBürger &causgewählt!"
wait 1 second
send "&cLoliRPMC &8>> &cGebe &6/joblohn &cein um dein Joblohn zu erhalten!"
stop
command /kündigen:
trigger:
if {jobcounter} is "1":
set {jobcounter} to 0
send "&cLoliRPMC &8>> &cJob gekündigt!"
It does not work so my goal is:
If a player types /bürger they can choose the job "Bürger" if they type it again its not working because they already chose it.
with /kündigen they can quit the job and they are again able to do /job and choose the job "Bürger"
Sorry i was so loooong inactive if this questions sounds dumb.
ERRORS:
https://i.ibb.co/fDpDC6V/22323.png
Last edited: