Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on chat:
- cancel event
- broadcast "&f[&7%{chat.prefix.%player%}%&f] &7%player%: &f%message%"
- on join:
- if {chat.prefix.%player%} is not set:
- set {chat.prefix.%player%} to "&7Speler"
- command /setprefix [<offline player>] [<text>]:
- permission: chat.setprefix
- permission message: &cYou dont have access to execute this command!
- usage: &7/setprefix
- trigger:
- if arg-2 is "Owner":
- if player has permission "chat.owner":
- set {chat.prefix.%arg-1%} to "&4&lOwner"
- message "&aYou changed the prefix of %arg-1% to %arg-2%"
- stop
- if arg-2 is "Admin":
- if player has permission "chat.admin":
- set {chat.prefix.%arg-1%} to "&2&lAdmin"
- message "&aYou changed the prefix of %arg-1% to %arg-2%"
- stop
- if arg-2 is "Mod":
- if player has permission "chat.moderator":
- set {chat.prefix.%arg-1%} to "&6&lModerator"
- message "&aYou changed the prefix of %arg-1% to %arg-2%"
- stop
- if arg-2 is "Helper":
- if player has permission "chat.helper":
- set {chat.prefix.%arg-1%} to "&eHelper"
- message "&aYou changed the prefix of %arg-1% to %arg-2%"
- stop
- if arg-2 is "Builder":
- if player has permission "chat.builder":
- set {chat.prefix.%arg-1%} to "&2Builder"
- message "&aYou changed the prefix of %arg-1% to %arg-2%"
- stop
- if arg-2 is "Player":
- if player has permission "chat.player":
- set {chat.prefix.%arg-1%} to "&7Player"
- message "&aYou changed the prefix of %arg-1% to %arg-2%"
- stop
- if arg-2 is "CoOwner" or "Co-Owner":
- if player has permission "chat.coowner":
- set {chat.prefix.%arg-1%} to "&b&lCo-Owner"
- message "&aYou changed the prefix of %arg-1% to %arg-2%"
- stop
- if arg-2 is "HeadBuilder" or "Head-Builder":
- if player has permission "chat.headbuilder":
- set {chat.prefix.%arg-1%} to "&2Head-Builder"
- message "&aYou changed the prefix of %arg-1% to %arg-2%"
- stop
- if arg-2 is "developer":
- if player has permission "chat.developer":
- set {chat.prefix.%arg-1%} to "&4Developer"
- message "&aYou changed the prefix of %arg-1% to %arg-2%"
- stop
- if arg-1 is not set:
- message "&cUse: &7/setprefix [Player] [Prefix]"
- if arg-1 is set:
- if arg-2 is set:
- set {chat.prefix.%arg-1%} to arg-2
- message "&aYou changed the prefix of %arg-1% to %arg-2%"
- if arg-1 is set:
- if arg-2 is not set:
- message "&cUse: &7/setprefix [Player] [Prefix]"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement