Join Messages

  • 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 community!

    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.

Lukkeeh

Member
Jun 24, 2017
11
0
1
So i want to have custom ranks as {Legend.%player%} and if i do like this
If they have default its another message. Why doesn't it work?


on join:
if {Legend.%player%} is set:
set join message to "&c%player% &9Joined the server!"
if {Default.%player%} is set:
set join message to "Default test"
 
code_language.skript:
on join:
    if {Legend.%player%} is set:
        set join message to "&c%player% &9Joined the server!"
    if {Default.%player%} is set:
        set join message to "Default test"
Did you format it correctly? I added in the tabs you need.
 
Are you using Bensku? I'm didnt see a "join message" when i did a quick search of the regular documentation, but Bensku has it.
Also, I would use a list variable for those. Just saves you trouble in the future and is easier on your variable storage. Like so:
{Legend::%player%}

You may also look at the code when your variable is set. Your syntax for the join message is correct, so the next potential problem area would be the variable not being set properly and stopping the message from triggering,
 
Status
Not open for further replies.