#Prefix Bug

1 messages · Page 1 of 1 (latest)

marsh hazel
#

The prefix in the broadcast is bugged

#
    if command contains "vanish":
        if {vanished::%player's uuid%} is not set:
            set {vanished::%player's uuid%} to true
            broadcast "&7[&a+&7] %player's prefix% &7%player% &7joined"
        else:
            delete {vanished::%player's uuid%}
            broadcast "&7[&c-&7] %player's prefix% &7%player% &7has left"

function hex(string: string) :: string:
    replace all "&##" in {_string} with "<##"
    return formatted join (regex {_string} split at "(?<=<##.{6})") with ">"```
#

Here is the code

spare storm
#

using hex, you need to broadcast formatted "" or send formatted ""

marsh hazel
rotund hull
marsh hazel
rotund hull
#

Yea, just put a if player has permission "(permission)": in the start or something, and then use send formatted "(your join/leave message)" to all players.

#

Hope that helps 🙂

marsh hazel
marsh hazel
rocky ibex
marsh hazel
spare storm
rocky ibex
marsh hazel
fallen sparrow
#

Or u can try send formatted "" to all players