Skip to content

Commit

Permalink
feat: add notify flag event
Browse files Browse the repository at this point in the history
  • Loading branch information
micartey committed Dec 18, 2023
1 parent 0a256f8 commit 47288d9
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main/java/me/clientastisch/cardinal/checks/Checks.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,12 @@ public abstract class Checks {
*/
public abstract void punish(Player player, Location location);

/**
* Get the name of a check.
* This also contains the type (Type A, B, C, ...)
*
* @return Full check name
*/
public abstract String getName();

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package me.clientastisch.cardinal.events.event.impl.server.others;

import lombok.Getter;
import lombok.RequiredArgsConstructor;
import me.clientastisch.cardinal.checks.Checks;
import me.clientastisch.cardinal.events.event.Event;
import org.bukkit.entity.Player;

/**
* Will be called for each stuff that will receive a flag message
*
* @author Clientastisch
* @since CAC v. 4.0.0
*/
public abstract class NotifyFlagEvent implements Event<NotifyFlagEvent> {

public abstract Player getSuspect();

public abstract Checks getChecks();

}

0 comments on commit 47288d9

Please sign in to comment.