Skip to content

Commit

Permalink
impl a few more truthies
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Mar 13, 2023
1 parent 9ca2084 commit ffe6a50
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
Expand Up @@ -421,6 +421,11 @@ public int hashCode() {
return getId();
}

@Override
public boolean isTruthy() {
return isSpawned();
}

public static void register() {

AbstractFlagTracker.registerFlagHandlers(tagProcessor);
Expand Down
Expand Up @@ -665,6 +665,11 @@ public boolean equals(Object other) {
return getUUID().equals(((PlayerTag) other).getUUID());
}

@Override
public boolean isTruthy() {
return isOnline();
}

public static void register() {

AbstractFlagTracker.registerFlagHandlers(tagProcessor);
Expand Down
Expand Up @@ -57,7 +57,7 @@ public class DamageTrigger extends AbstractTrigger implements Listener {
// @Actions
// damage
//
// @Triggers when the NPC is damaged by a player.
// @Triggers when the NPC is damaged by a player and the Damage trigger fires. Action does not run if you do not enable the Damage trigger.
//
// @Context
// <context.damage> returns how much damage was done.
Expand Down

0 comments on commit ffe6a50

Please sign in to comment.