#(Lycheeeees) Sentinel bot issue
1 messages · Page 1 of 1 (latest)
(Lycheeeees) Sentinel bot issue
Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
You can block this bot if you don't want to see these messages, I won't mind.
<@&525394568410038282>
all i want is 1 npc that attacks a player and if it dies it deletes itself
public class playerjoin implements Listener {
@EventHandler
public void onPlayerJoin(PlayerJoinEvent e) {
System.out.println("Player has jopined spawining in npc");
Player player = e.getPlayer();
NPC npc = CitizensAPI.getNPCRegistry().createNPC(EntityType.PLAYER, "TestName");
SentinelTrait sentinel = npc.getOrAddTrait(SentinelTrait.class);
sentinel.addTarget("players");
npc.spawn(player.getLocation());
}
}
Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.
If not yet resolved, please reply below to tell us what you still need.
(Note that if there is no reply for a few days, this thread will eventually close itself.)
@glacial bane
Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.
If not yet resolved, please reply below to tell us what you still need.
(Note that if there is no reply for a few days, this thread will eventually close itself.)
@glacial bane