why doesn't this work? (I get a bunch of things mentioning indenting and invalid line)

  • 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.

Jasper1229

Member
Nov 19, 2020
1
0
1
24
on join:
if {Joins::*} does not contain player's uuid:
add player's uuid to {Joins::*}
add 1 to {uniqueJoins}
set join message to " "
broadcast "&a%player%&6 joined for the first time! Welcome to ArsenalMC! &8[&b##%size of {joins::*}%&8]"
else:
set join message to " "
broadcast "&a%player%&6 joined the server!"

stop

command /resetjoins:
permission: joins.resetjoins
permission message: "You can't do that (this requires joins.resetjoins)"
trigger:
delete {Joins::*}
send "&cDeleted joins. I hope you are happy with yourself" to player
stop

command /checkjoins
permission: joins.checkjoins
permission message: "You can't do that (this requires joins.checkjoins)"
trigger:
send "&bYou have &8[&b##%size of {joins::*}%&8]&b joins" to player
stop
 
Code:
on join:
  if {Joins::*} does not contain player's uuid:
    add player's uuid to {Joins::*}
    add 1 to {uniqueJoins}
    set join message to " "
    broadcast "&a%player%&6 joined for the first time! Welcome to ArsenalMC! &8[&b##%size of {joins::*}%&8]"
  else:
    set join message to " "
    broadcast "&a%player%&6 joined the server!"
    stop

command /resetjoins:
  permission: joins.resetjoins
  permission message: "You can't do that (this requires joins.resetjoins)"
  trigger:
    delete {Joins::*}
    send "&cDeleted joins. I hope you are happy with yourself" to player
    stop

command /checkjoins:
  permission: joins.checkjoins
  permission message: "You can't do that (this requires joins.checkjoins)"
  trigger:
    send "&bYou have &8[&b##%size of {joins::*}%&8]&b joins" to player
    stop
Hopefully this fix the issue, it was just formatting I hope
 
  • Like
Reactions: acai and Jasper1229
Status
Not open for further replies.