-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* spigot yawn * Remove PAPI and use Adventure chat event * chore: update dependencies / move to h2 * feature: update to modern MiniMessage * fix: shade h2 * fix: use h2 connector properly * not sure * cleanup and some work on menus * chore:build changes * fix: i love gradle ^__^ * feature: intial work on gui * feature: more work on gui * feature: more work on menu * chore: reformat project * chore: more reformatting * feature: work on menu * feature: download dependencies * move to gremlin :) * improve gremlin usage (#11) * add excludes and fix repo * relocate gremlin * more excludes * rename bukkit module to paper and use shared ci * rename workflow file * work on tags menu, fix some import ordering * cleanup gremlin usage * chore: update flyway and papi * fix: update main file in paper-plugin.yml * fix: install paper interface listeners earlier * feature: minor menu improvements * fix: close example tags styling * fix: return correct status in ActionService#select * fix: close all tags inserted in messages * bump version --------- Co-authored-by: broccoli <[email protected]> Co-authored-by: Jason Penilla <[email protected]>
- Loading branch information
1 parent
fb51096
commit 8ac49a6
Showing
84 changed files
with
1,149 additions
and
821 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: "build" | ||
|
||
on: | ||
push: | ||
branches: [ "**" ] | ||
tags-ignore: [ "**" ] | ||
pull_request: | ||
release: | ||
types: [ released ] | ||
|
||
jobs: | ||
call-build: | ||
uses: "broccolai/actions/.github/workflows/shared-ci.yml@master" | ||
secrets: inherit | ||
with: | ||
artifacts-path: 'paper/build/libs/tags-paper.jar' |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -155,5 +155,4 @@ gradle-app.setting | |
# Custom Ignores | ||
build.sh | ||
.env | ||
|
||
bukkit/run | ||
paper/run |
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 |
---|---|---|
|
@@ -2,4 +2,5 @@ dependencies { | |
api(libs.guice.core) | ||
api(libs.minimessage) | ||
api(libs.event.api) | ||
api(libs.configurate) | ||
} |
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
21 changes: 21 additions & 0 deletions
21
api/src/main/java/broccolai/tags/api/model/tag/ConstructedTag.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,21 @@ | ||
package broccolai.tags.api.model.tag; | ||
|
||
import broccolai.tags.api.model.Permissible; | ||
import net.kyori.adventure.text.Component; | ||
import org.checkerframework.checker.nullness.qual.NonNull; | ||
|
||
public record ConstructedTag( | ||
int id, | ||
@NonNull String name, | ||
boolean secret, | ||
@NonNull Component component, | ||
@NonNull String reason, | ||
@NonNull TagDisplayInformation displayInformation | ||
) implements Permissible { | ||
|
||
@Override | ||
public @NonNull String permission() { | ||
return "tags.tag." + this.id(); | ||
} | ||
|
||
} |
This file was deleted.
Oops, something went wrong.
14 changes: 14 additions & 0 deletions
14
api/src/main/java/broccolai/tags/api/model/tag/TagDisplayInformation.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,14 @@ | ||
package broccolai.tags.api.model.tag; | ||
|
||
import org.checkerframework.checker.nullness.qual.NonNull; | ||
import org.checkerframework.checker.nullness.qual.Nullable; | ||
import org.spongepowered.configurate.objectmapping.ConfigSerializable; | ||
|
||
//todo(josh): split tag into an interface and hide this in the implementation | ||
// and remove configurate as a dependency in for api project | ||
@ConfigSerializable | ||
public record TagDisplayInformation( | ||
@NonNull String material, | ||
@Nullable Integer customModelData | ||
) { | ||
} |
9 changes: 4 additions & 5 deletions
9
api/src/main/java/broccolai/tags/api/model/user/TagsUser.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
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
13 changes: 13 additions & 0 deletions
13
api/src/main/java/broccolai/tags/api/service/ActionService.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,13 @@ | ||
package broccolai.tags.api.service; | ||
|
||
import broccolai.tags.api.model.tag.ConstructedTag; | ||
import broccolai.tags.api.model.user.TagsUser; | ||
import org.checkerframework.checker.nullness.qual.NonNull; | ||
|
||
public interface ActionService { | ||
|
||
boolean select(@NonNull TagsUser user, @NonNull ConstructedTag tag); | ||
|
||
void remove(@NonNull TagsUser user); | ||
|
||
} |
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: 9 additions & 10 deletions
19
api/src/main/java/broccolai/tags/api/service/MessageService.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
Oops, something went wrong.