-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
278 additions
and
362 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 0 additions & 19 deletions
19
bans-api/src/main/java/space/arim/libertybans/api/punish/UndoAttachment.java
This file was deleted.
Oops, something went wrong.
26 changes: 26 additions & 0 deletions
26
bans-api/src/main/java/space/arim/libertybans/api/punish/UndoBuilder.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package space.arim.libertybans.api.punish; | ||
|
||
import space.arim.libertybans.api.Operator; | ||
import space.arim.omnibus.util.concurrent.ReactionStage; | ||
|
||
import java.time.Instant; | ||
|
||
/** | ||
* This interface encapsulates additional information present for historical punishments | ||
* that have been undone. | ||
*/ | ||
public interface UndoBuilder { | ||
|
||
UndoBuilder operator(Operator operator); | ||
|
||
UndoBuilder operatorAndReason(Operator operator, String reason); | ||
|
||
UndoBuilder clearOperatorAndReason(); | ||
|
||
UndoBuilder enforcementOptions(EnforcementOptions enforcementOptions); | ||
|
||
ReactionStage<Boolean> undoPunishment(); | ||
|
||
ReactionStage<Punishment> undoAndGetPunishment(); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.