-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
merge: version 4.3.0-SNAPSHOT [DEPLOY-SKIP] (#99)
- Loading branch information
Showing
74 changed files
with
1,787 additions
and
310 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,10 +8,11 @@ on: | |
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
if: "! contains(github.event.head_commit.message, '[DEPLOY-SKIP]')" | ||
steps: | ||
- uses: actions/[email protected] | ||
- name: Set up JDK 16 | ||
uses: actions/setup-java@v2.3.1 | ||
uses: actions/setup-java@v2.5.0 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '16' | ||
|
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 |
---|---|---|
|
@@ -7,7 +7,7 @@ jobs: | |
steps: | ||
- uses: actions/[email protected] | ||
- name: Set up JDK 16 | ||
uses: actions/setup-java@v2.3.1 | ||
uses: actions/setup-java@v2.5.0 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '16' | ||
|
@@ -32,7 +32,7 @@ jobs: | |
mv features/gui/build staging/features/gui | ||
mv features/notifier/build staging/features/notifier | ||
mv features/stick/build staging/features/stick | ||
- uses: actions/upload-artifact@v2.2.4 | ||
- uses: actions/upload-artifact@v2.3.1 | ||
with: | ||
name: Package | ||
path: staging |
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
11 changes: 11 additions & 0 deletions
11
api/src/main/java/net/okocraft/box/api/event/BoxEvent.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 |
---|---|---|
@@ -1,9 +1,20 @@ | ||
package net.okocraft.box.api.event; | ||
|
||
import com.github.siroshun09.event4j.event.Event; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
/** | ||
* A superclass for all events fired by the Box. | ||
*/ | ||
public class BoxEvent extends Event { | ||
|
||
/** | ||
* Creates the debug log from this event. | ||
* | ||
* @return the debug log | ||
*/ | ||
public @NotNull String toDebugLog() { | ||
return toString(); | ||
} | ||
|
||
} |
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
7 changes: 7 additions & 0 deletions
7
api/src/main/java/net/okocraft/box/api/event/general/AutoSaveStartEvent.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 |
---|---|---|
@@ -1,9 +1,16 @@ | ||
package net.okocraft.box.api.event.general; | ||
|
||
import net.okocraft.box.api.event.BoxEvent; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
/** | ||
* An event called when the auto save task started. | ||
*/ | ||
public class AutoSaveStartEvent extends BoxEvent { | ||
|
||
@Override | ||
public @NotNull String toDebugLog() { | ||
return getEventName(); | ||
} | ||
|
||
} |
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
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
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
7 changes: 7 additions & 0 deletions
7
api/src/main/java/net/okocraft/box/api/feature/Disableable.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,7 @@ | ||
package net.okocraft.box.api.feature; | ||
|
||
/** | ||
* An interface to indicate that the {@link BoxFeature} can be disabled in config.yml. | ||
*/ | ||
public interface Disableable { | ||
} |
Oops, something went wrong.