Skript geniusses here?

Hey, im working on a Skript and i need some help with it, is anyone good at it here?
6 Replies
Admincraft Meta
Thanks for asking your question!
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
Make sure to mark solved when issue is solved!!!
/close !close !solved !answered
Requested by sebastiaandb#0
! ASebastiaan
! ASebastiaanOP2y ago
on region enter:
"%region at player%" contains "XXX":
if {Plrs} isn't 0:
add 1 to {Plrs}
send "Welcome to the room" to player
wait 10 ticks
else:
cancel event
send "Sorry! The region has the max amount of players (1)!" to player
make console execute dcommand "spawn %player%"
wait 10 ticks
on region exit:
"%region at player%" contains "XXX":
remove 1 from {Plrs}
wait 10 ticks
on region enter:
"%region at player%" contains "XXX":
if {Plrs} isn't 0:
add 1 to {Plrs}
send "Welcome to the room" to player
wait 10 ticks
else:
cancel event
send "Sorry! The region has the max amount of players (1)!" to player
make console execute dcommand "spawn %player%"
wait 10 ticks
on region exit:
"%region at player%" contains "XXX":
remove 1 from {Plrs}
wait 10 ticks
This is what i have right now but the spawn command (once i remove the D) crashes the server and it is not at all doing what i was hoping (i want to make a limit on amount of players in a worldguard region)
goosBanny
goosBanny2y ago
found the issue! you're using skript anyways no way any active member here uses skript
! ASebastiaan
! ASebastiaanOP2y ago
i can't code so im trying to do skript
ProGamingDk
ProGamingDk2y ago
get a dev, or learn java yourself
QarthO
QarthO2y ago
What exactly are you trying to do? Ignore the skript What problem are you trying to solve that ur hoping skript will fix I’m sure there is an existing alternative plugin that already does what u want

Did you find this page helpful?