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

neb1u

Member
Jul 28, 2022
2
0
1
24
so I want a skript so when you get in combat you can not enter back into spawn
i have a combat tag skript i made but idk if you need it ill just put it here
it needs to work 1.17
on damage:
if attacker is a player:
set {combat::%attacker's uuid%} to now
set {combat::%victim's uuid%} to now
if {combat::%attacker's uuid%} is set:


on command:
if player is not op:
if {combat::%player's uuid%} is set:
set {_time} to difference between {combat::%player's uuid%} and now
if {_time} < 15 seconds:
send "&cYour currenly in combat, please wait" to player
cancel event
 
use worldguard to make regions

then in skript something like
on region enter:
if "%event-region%" = "-your region name- in world world":
set {_time} to difference between {combat::%event-player's uuid%} and now
if {_time} < 15 seconds:
cancel event
 
Last edited:
use worldguard to make regions

then in skript something like
on region enter:
if "%event-region%" = "-your region name- in world world":
set {_time} to difference between {combat::%event-player's uuid%} and now
if {_time} < 15 seconds:
cancel event
i did it now even if im oped and in spawn i cant move

on region enter:
if "%event-region%" = "-spawn-world":
set {_time} to difference between {combat::%event-player's uuid%} and now
if {_time} < 15 seconds:
cancel event
 
Last edited:
sorry didnt check the forum for a few days, just add a if to check player's permissions