Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- P: &f&l[Inventors]
- C: &7&l
- H: &a&l
- Scenario: Inventors
- Command: /inventors
- Permission: skript.inventors
- PlaySounds: true
- Sound: random.pop
- Pitch: 2
- command {@Command} [<text>]:
- trigger:
- if arg-1 is "on" or "enable":
- command sender has permission "{@Permission}":
- if {Inventors.Enabled} is not set:
- set {Inventors.Enabled} to true
- delete {Inventors.Items::*}
- broadcast "{@P}{@C} Enabled by {@H}%command sender%!"
- else:
- message "{@P}{@C} Already enabled!" to the command sender
- stop trigger
- else:
- execute console command "/playsound random.break %command sender% ~ ~ ~ 1 1 1"
- message "{@P}{@C} You don't have permission for that!" to the command sender
- else if arg-1 is "off" or "disable":
- command sender has permission "{@Permission}":
- if {Inventors.Enabled} is true:
- delete {Inventors.Enabled}
- delete {Inventors.Items::*}
- broadcast "{@P}{@C} Disabled by {@H}%command sender%!"
- else:
- message "{@P}{@C} Already disabled!" to the command sender
- stop trigger
- else:
- execute console command "/playsound random.break %command sender% ~ ~ ~ 1 1 1"
- message "{@P}{@C} You don't have permission for that!" to the command sender
- else if arg-1 is "toggle" or "switch":
- if {Inventors.Enabled} is true:
- command sender command "/{@Command} off"
- stop trigger
- if {Inventors.Enabled} is not set:
- command sender command "/{@Command} on"
- stop trigger
- else if arg-1 is "reset":
- if {Inventors.Enabled} is true:
- delete {Inventors.Items::*}
- broadcast "{@P}{@C} Items have been reset!"
- message "{@P}{@H} %command sender%, Inventors is &lstill{@H} enabled!"
- else:
- message "{@P}{@H} Inventors is not enabled!"
- else if arg-1 is "help" or "?" or "question" or "info" or "information":
- message "" to the command sender
- if command sender has permission "{@Permission}":
- message "{@P}{@C} /{@Command} {@H}on/off/toggle" to the command sender
- message "{@P}{@C} Scenario by: {@H}/u/farlander0015"
- if command sender is "Fleft":
- message "{@P}{@C} Skript: {@H}You!" to the command sender
- else:
- message "{@P}{@C} Skript: {@H}Fleft" to the command sender
- message "" to the command sender
- message "{@P}{@C} In {@H}Inventors{@C} the first time someone" to the command sender
- message "{@P}{@C} crafts something, it's broadcasted."
- message "" to the command sender
- else if arg-1 is not set:
- command sender command "/{@Command} help"
- else:
- command sender command "/{@Command} help"
- on craft:
- {Inventors.Enabled} is true:
- if {Inventors.Items::%event-item%} is not set:
- set {Inventors.Items::%event-item%} to true
- broadcast "{@P}{@C} %event-player%: {@H}%event-item%!"
- if {@PlaySounds} is true:
- loop all players:
- execute console command "/playsound {@Sound} %loop-player% ~ ~ ~ 1 {@Pitch} 1"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement