Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- P: &7[&bAlerting Diamonds&7]&f
- command /alertdia [<text>]:
- usage: /alertdia help
- permission: alert.dia
- permission message: {@P} You do not have the permission to use this command.
- trigger:
- if arg 1 is not set:
- send "{@P} /alertdia help" to the command sender
- if arg 1 is "help":
- send "&b--------------------------------------" to the command sender
- send "{@P} &4INFO: &fWhen you mine a diamond, a ghast moan is played to all players." to the command sender
- send " " to the command sender
- send "{@P} Game Commands" to the command sender
- send " " to the command sender
- send "{@P} /alertdia &2on: &f Enables the gamemode." to the command sender
- send "{@P} /alertdia &coff: &f Disables the gamemode." to the command sender
- send "&b--------------------------------------" to the command sender
- if arg 1 is "on":
- set {alerted} to true
- broadcast "{@P} Alerting Diamonds has been &2enabled &fby &e%command sender%!"
- if arg 1 is "off":
- set {alerted} to false
- broadcast "{@P} Alerting Diamonds has been &cdisabled &fby &e%command sender%!"
- on mine of diamond ore:
- {alerted} is true:
- loop all players:
- execute console command "/playsound mob.ghast.scream %loop-player%
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement