Hi there! I am making an SCP server and want a guard to attack only the "Class-D" prefix. ("&6Class-D &f" in Luck perms)
Every code I try, it's not working. If anyone could help me, I'd appreciate it a lot! Thank you!
Code:
By the way, I'm using the skript-npc and Sentinel plugin.
Every code I try, it's not working. If anyone could help me, I'd appreciate it a lot! Thank you!
Code:
Code:
on entity target:
if entity is a citizen:
set {prefix::%target's uuid%} to target's prefix
if {prefix::%target's uuid%} contains "&6Class-D &f" or "default":
make entity attack target
else:
cancel event
By the way, I'm using the skript-npc and Sentinel plugin.