Skip to content

Commit d13759a

Browse files
authored
Add the requested API and config features (#469)
* Add the requested API and config features * some more fixes
1 parent 50da9f7 commit d13759a

File tree

25 files changed

+105
-40
lines changed

25 files changed

+105
-40
lines changed

.tool-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
java adoptopenjdk-8.0.332+9
1+
java openjdk-21

api/src/main/java/com/craftmend/openaudiomc/api/VoiceApi.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,5 +162,29 @@ static VoiceApi getInstance() {
162162
*/
163163
boolean isChannelNameValid(String s);
164164

165+
/**
166+
* Check if a client has voicechat moderation enabled
167+
* @param client the client to check
168+
* @return true if the client has moderation enabled
169+
* @since 6.10.9
170+
*/
171+
boolean isClientModerating(Client client);
172+
173+
/**
174+
* Start a moderation session for a client, bypassing permission checks.
175+
* Moderation will still have to be enabled in the config, otherwise this method will return false and do nothing.
176+
* Moderation mode isn't permanent, it will only last for the duration you have configured in the config, but you can call this method again to extend the duration.
177+
* @param client the client to enable or disable moderation for
178+
* @return true if the client is now moderating
179+
* @since 6.10.9
180+
*/
181+
boolean startClientModeration(Client client);
182+
183+
/**
184+
* Stop a moderation session for a client
185+
* @param client the client to stop moderation for
186+
* @since 6.10.9
187+
*/
188+
void stopClientModeration(Client client);
165189

166190
}

dev-resources/spawn-test-spigot.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ echo "Starting server.."
2828
rm world/session.lock
2929
rm world_the_end/session.lock
3030
rm world_nether/session.lock
31-
java -Xms3G -Xmx3G -DIReallyKnowWhatIAmDoingISwear -jar spigot-1.21.4.jar nogui
31+
java -Xms3G -Xmx3G -DIReallyKnowWhatIAmDoingISwear -jar paper-1.20.4-499.jar nogui

modules/mapdb-migrator/dependency-reduced-pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
<dependency>
108108
<groupId>com.craftmend.openaudiomc</groupId>
109109
<artifactId>openaudiomc</artifactId>
110-
<version>6.10.8</version>
110+
<version>6.10.9</version>
111111
<scope>provided</scope>
112112
</dependency>
113113
<dependency>

modules/parties-module/dependency-reduced-pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
<dependency>
113113
<groupId>com.craftmend.openaudiomc</groupId>
114114
<artifactId>openaudiomc</artifactId>
115-
<version>6.10.8</version>
115+
<version>6.10.9</version>
116116
<scope>provided</scope>
117117
</dependency>
118118
<dependency>

modules/skywars-module/dependency-reduced-pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
<dependency>
113113
<groupId>com.craftmend.openaudiomc</groupId>
114114
<artifactId>openaudiomc</artifactId>
115-
<version>6.10.8</version>
115+
<version>6.10.9</version>
116116
<scope>provided</scope>
117117
</dependency>
118118
<dependency>

modules/vistas-client/dependency-reduced-pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
<dependency>
116116
<groupId>com.craftmend.openaudiomc</groupId>
117117
<artifactId>openaudiomc</artifactId>
118-
<version>6.10.8</version>
118+
<version>6.10.9</version>
119119
<scope>provided</scope>
120120
</dependency>
121121
<dependency>

modules/voice-join-permission/dependency-reduced-pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
<dependency>
109109
<groupId>com.craftmend.openaudiomc</groupId>
110110
<artifactId>openaudiomc</artifactId>
111-
<version>6.10.8</version>
111+
<version>6.10.9</version>
112112
<scope>provided</scope>
113113
</dependency>
114114
<dependency>

plugin/protocol/static-resources/project_status.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"response": {
33
"versioning": {
4-
"version_tag": "6.10.7",
4+
"version_tag": "6.10.9",
55
"build_number": 700,
66
"version_importance": "&e&aHighly Recommended",
77
"version_update_message": "Migrated to a new platform, free CDN, settings, routing, and much more! Please read the changelog for more information and a guide on how to migrate."

plugin/src/main/bash/data.bin

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
BUILD_NUM="1521"
1+
BUILD_NUM="1531"

0 commit comments

Comments
 (0)