-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #140 from Nookure/dev
Release 1.5.0
- Loading branch information
Showing
53 changed files
with
1,491 additions
and
174 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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# This workflow will build a Java project with Maven | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven | ||
|
||
name: NookureStaff Modrinth Publish | ||
|
||
on: | ||
push: | ||
branches: [ release/*, dev, feature/*, fix/* ] | ||
jobs: | ||
build-on-ubuntu: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- name: Checkout main branch from GitHub | ||
uses: actions/checkout@v4 | ||
|
||
- name: Execute Gradle build & publish | ||
env: | ||
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }} | ||
run: | | ||
chmod +x gradlew | ||
./gradlew :modrinth |
14 changes: 0 additions & 14 deletions
14
NookureStaff-API/src/main/java/com/nookure/staff/api/annotation/RedisPublish.java
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
NookureStaff-API/src/main/java/com/nookure/staff/api/annotation/RedisSubscribe.java
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
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
30 changes: 30 additions & 0 deletions
30
NookureStaff-API/src/main/java/com/nookure/staff/api/config/bukkit/GlowConfig.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,30 @@ | ||
package com.nookure.staff.api.config.bukkit; | ||
|
||
import org.spongepowered.configurate.objectmapping.ConfigSerializable; | ||
import org.spongepowered.configurate.objectmapping.meta.Comment; | ||
import org.spongepowered.configurate.objectmapping.meta.Setting; | ||
|
||
import java.util.Map; | ||
|
||
@ConfigSerializable | ||
public class GlowConfig { | ||
@Setting | ||
@Comment("Enable or disable the glow feature") | ||
public boolean enabled = true; | ||
|
||
@Setting | ||
@Comment("Change the prefix color of the player's name") | ||
public boolean tabIntegration = true; | ||
|
||
@Setting | ||
@Comment("The default color for the glow") | ||
public String defaultColor = "<white>"; | ||
|
||
@Setting | ||
@Comment("This colors must follow the format: <color> or <#hex>") | ||
public Map<String, String> glowColors = Map.of( | ||
"staff", "<red>", | ||
"admin", "<yellow>", | ||
"mod", "<green>" | ||
); | ||
} |
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
67 changes: 67 additions & 0 deletions
67
...aff-API/src/main/java/com/nookure/staff/api/config/bukkit/partials/CustomItemPartial.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,67 @@ | ||
package com.nookure.staff.api.config.bukkit.partials; | ||
|
||
import org.bukkit.Material; | ||
import org.jetbrains.annotations.NotNull; | ||
import org.spongepowered.configurate.objectmapping.ConfigSerializable; | ||
import org.spongepowered.configurate.objectmapping.meta.Comment; | ||
import org.spongepowered.configurate.objectmapping.meta.Setting; | ||
|
||
import java.util.List; | ||
|
||
@ConfigSerializable | ||
public class CustomItemPartial extends ItemPartial { | ||
@Setting | ||
@Comment(""" | ||
The type of the custom item. | ||
- COMMAND_AS_PLAYER: The command will be executed as the player who clicked the item. | ||
- COMMAND_AS_CONSOLE: The command will be executed as the console. | ||
- COMMAND_TARGET_AS_PLAYER: The command will be executed | ||
as the player who is staff but with the placeholder of {target} replaced by the player that | ||
have been clicked. | ||
- COMMAND_TARGET_AS_CONSOLE: The command will be executed as the console but with the placeholder | ||
of {target} replaced by the player that have been clicked. | ||
""") | ||
private CustomItemType type; | ||
|
||
@Setting | ||
@Comment(""" | ||
The command to execute when the item is clicked. | ||
You can use the placeholder {player} to get the player who clicked the item. | ||
You can use the placeholder {target} to get the player who have been clicked. | ||
""") | ||
private String command; | ||
|
||
public CustomItemPartial() { | ||
} | ||
|
||
public CustomItemPartial( | ||
final boolean enabled, | ||
@NotNull final String name, | ||
@NotNull final Material material, | ||
final int slot, | ||
@NotNull final List<String> lore, | ||
@NotNull final String permission, | ||
@NotNull final CustomItemType type, | ||
@NotNull final String command | ||
) { | ||
super(enabled, name, material, slot, lore, permission); | ||
this.type = type; | ||
this.command = command; | ||
} | ||
|
||
public CustomItemType getType() { | ||
return type; | ||
} | ||
|
||
public void setType(CustomItemType type) { | ||
this.type = type; | ||
} | ||
|
||
public String getCommand() { | ||
return command; | ||
} | ||
|
||
public void setCommand(String command) { | ||
this.command = command; | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
...eStaff-API/src/main/java/com/nookure/staff/api/config/bukkit/partials/CustomItemType.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,8 @@ | ||
package com.nookure.staff.api.config.bukkit.partials; | ||
|
||
public enum CustomItemType { | ||
COMMAND_AS_PLAYER, | ||
COMMAND_AS_CONSOLE, | ||
COMMAND_TARGET_AS_PLAYER, | ||
COMMAND_TARGET_AS_CONSOLE, | ||
} |
12 changes: 12 additions & 0 deletions
12
...I/src/main/java/com/nookure/staff/api/config/bukkit/partials/PermissionConfigPartial.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,12 @@ | ||
package com.nookure.staff.api.config.bukkit.partials; | ||
|
||
import org.spongepowered.configurate.objectmapping.ConfigSerializable; | ||
import org.spongepowered.configurate.objectmapping.meta.Comment; | ||
import org.spongepowered.configurate.objectmapping.meta.Setting; | ||
|
||
@ConfigSerializable | ||
public class PermissionConfigPartial { | ||
@Setting | ||
@Comment("Listen when a player gets `nookure.staff` permission to reconstruct the player wrapper.") | ||
public boolean watchLuckPermsPermissions = true; | ||
} |
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.