options: format1: "{PREFIX} {PLAYER}: {MESSAGE}" format2: "{PREFIX}: {PLAYER} {MESSAGE}" on chat: cancel event if {format::%player%} is set: set {_m} to {format::%player%} if {player::%player's world%::%player%} is not set: set {_prefix} to "&6Player" else: set {_prefix} to {player::%player's world%::%player%} if player has permission "vip.%player's world%" or "vip.*": set {_prefix} to "&6&lVIP" replace all "{PREFIX}" with "%{_prefix}%" in {_m} replace all "{PLAYER}" with "%name of player%" in {_m} replace all "{MESSAGE}" with "%message%" in {_m} replace all "{WORLD}" with "%player's world%" in {_m} send "%{_m}%" to all players in world("%player's world%") else: send "&7Musisz wybrac format!" command /setformat []: trigger: if arg 1 is set: if arg 1 is "1" or "2": if arg 1 is "2": set {format::%player%} to {@format2} send "&7Wybrales format: {@format2}" if arg 1 is "1": set {format::%player%} to {@format1} send "&7Wybrales format:" else: send "1/2" else: send "1/2"