Solved player's prefix

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Leonardo_

Member
Sep 21, 2020
18
0
1
24
Hi, can you tell me how I can display the player's prefix and suffix?
I just tried this code but it doesn't works.

Code:
on chat:
    cancel event
    set {prefix} to player's prefix
    broadcast "%{prefix}% %event-player% %message%"

upload_2021-2-18_14-43-3.png
 
You can use plugins like vault or you can use

on chat:
set the chat format to "[prefix] %player%: %message%"
 
You can use plugins like vault or you can use

on chat:
set the chat format to "[prefix] %player%: %message%"
They're looking how to use a prefix from an outlying plugin, not create one with Skript. Your example would show
Code:
[prefix] akurx: sample text
 
Status
Not open for further replies.