Hey
I'm trying to make a command which staff can announce if there are issues or whatever they want.
I wanted to add a feature that lets the staff be anonymous, which means it could be like that:
StaffMemberName: I'm hosting an event at my warp come join for prize.
or it could be
AnonymousStaff: we're experiencing some issues warp fps is now closed.
Here's my code:
have a nice day
I'm trying to make a command which staff can announce if there are issues or whatever they want.
I wanted to add a feature that lets the staff be anonymous, which means it could be like that:
StaffMemberName: I'm hosting an event at my warp come join for prize.
or it could be
AnonymousStaff: we're experiencing some issues warp fps is now closed.
Here's my code:
Code:
command /staffannounce <text> <text>:
permission: staff.announce
usage: /staffannounce <Anonymously yes/no> <message>
aliases: /sa
permission message: &cYou're not allowed to use this command!
trigger:
if arg-1 is "yes":
broadcast "&f"
broadcast "&5&lStaff announcments&7: &f&l%arg-2%"
broadcast "&f"
if arg-1 is "no":
broadcast "&f"
broadcast "&c%player%&7: &f&l%arg-2%"
broadcast "&f"