-
-
Notifications
You must be signed in to change notification settings - Fork 104
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 #414 from Mindgamesnl/development
6.10.1
- Loading branch information
Showing
71 changed files
with
1,132 additions
and
82 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
19 changes: 19 additions & 0 deletions
19
api/src/main/java/com/craftmend/openaudiomc/api/channels/ChannelJoinResponse.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,19 @@ | ||
package com.craftmend.openaudiomc.api.channels; | ||
|
||
public enum ChannelJoinResponse { | ||
|
||
/** | ||
* The client is allowed to join the channel | ||
*/ | ||
ALLOWED, | ||
|
||
/** | ||
* The client is only allowed to join this channel if they are invited | ||
*/ | ||
INVITE_ONLY, | ||
|
||
/** | ||
* The client is not allowed to join this channel | ||
*/ | ||
NO_PERMISSION, | ||
} |
76 changes: 76 additions & 0 deletions
76
api/src/main/java/com/craftmend/openaudiomc/api/channels/VoiceChannel.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,76 @@ | ||
package com.craftmend.openaudiomc.api.channels; | ||
|
||
import com.craftmend.openaudiomc.api.basic.Actor; | ||
import com.craftmend.openaudiomc.api.clients.Client; | ||
import org.jetbrains.annotations.Nullable; | ||
|
||
import java.util.Collection; | ||
import java.util.UUID; | ||
|
||
public interface VoiceChannel { | ||
|
||
/** | ||
* Get the name of the channel | ||
* @return the name of the channel | ||
*/ | ||
String getName(); | ||
|
||
/** | ||
* Get the members of the channel | ||
* @return the members of the channel | ||
*/ | ||
Collection<Client> getMembers(); | ||
|
||
/** | ||
* Get the creator of the channel | ||
* @return the creator of the channel, or null if the channel is not a user channel | ||
*/ | ||
@Nullable | ||
Actor getCreator(); | ||
|
||
/** | ||
* If this channel requires permission to join | ||
* @return true if the channel requires permission to join | ||
*/ | ||
boolean requiresPermission(); | ||
|
||
/** | ||
* Get the required permission to join this channel | ||
* @return the required permission to join this channel, or null if the channel does not require permission | ||
*/ | ||
@Nullable | ||
String getRequiredPermission(); | ||
|
||
/** | ||
* Check if a client is a member of this channel | ||
* @param actor the actor to check | ||
* @return true if the actor is a member of this channel | ||
*/ | ||
boolean isMember(Actor actor); | ||
|
||
/** | ||
* Check if a client is a member of this channel | ||
* @param uuid the uuid of the actor to check | ||
* @return true if the actor is a member of this channel | ||
*/ | ||
boolean isMember(UUID uuid); | ||
|
||
/** | ||
* Check if a client would be allowed to join this channel | ||
* @param client the client to check | ||
* @return the response of the join check | ||
*/ | ||
ChannelJoinResponse joinPreconditionCheck(Client client); | ||
|
||
/** | ||
* Add a member to the channel | ||
* @param client the client to add | ||
*/ | ||
void addMember(Client client); | ||
|
||
/** | ||
* Remove a member from the channel | ||
* @param client the client to remove | ||
*/ | ||
void removeMember(Client client); | ||
} |
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 |
---|---|---|
@@ -1 +1 @@ | ||
{"buildMajor":1,"buildMinor":125,"buildRevision":239,"buildTag":"dev","buildDate":"Sun Mar 31 2024","build":"1.125.239 dev"} | ||
{"buildMajor":1,"buildMinor":125,"buildRevision":240,"buildTag":"dev","buildDate":"Sun May 05 2024","build":"1.125.240 dev"} |
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 |
---|---|---|
@@ -1 +1 @@ | ||
{"buildMajor":1,"buildMinor":125,"buildRevision":239,"buildTag":"dev","buildDate":"Sun Mar 31 2024","build":"1.125.239 dev"} | ||
{"buildMajor":1,"buildMinor":125,"buildRevision":240,"buildTag":"dev","buildDate":"Sun May 05 2024","build":"1.125.240 dev"} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
export JAVA_HOME=`/usr/libexec/java_home -v 17` | ||
mkdir -p test-server-spigot/plugins/ | ||
mkdir -p test-server-spigot/plugins/OpenAudioMc/ | ||
echo "Building new OpenAudioMc jar without unit tests.." | ||
|
||
cd plugin | ||
./src/main/bash/post-build.sh | ||
cd .. | ||
|
||
mvn -T 4.5C clean install -Dmaven.test.skip=true | ||
|
||
# permission workaround | ||
rm -rf dev-resources/velocity-test/plugins/openaudiomc-*.jar | ||
mkdir -p dev-resources/velocity-test/plugins/ | ||
cp plugin/target/openaudiomc-*.jar dev-resources/velocity-test/plugins/ | ||
cd dev-resources/velocity-test/ | ||
docker-compose up --build |
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 @@ | ||
plugins/* |
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,44 @@ | ||
version: '3' | ||
|
||
services: | ||
velocity-paper1: | ||
restart: on-failure | ||
image: itzg/minecraft-server | ||
environment: | ||
- EULA=TRUE | ||
- ONLINE_MODE=FALSE | ||
- TYPE=PAPER | ||
- SPIGOT_BUNGEE=true | ||
- BUNGEECORD_IP=0.0.0.0 | ||
- VERSION=1.20.2 | ||
#- BUILD_FROM_SOURCE=true | ||
volumes: | ||
- ./velocity-spigot1:/data | ||
- ./plugins:/plugins | ||
|
||
velocity-paper2: | ||
restart: on-failure | ||
image: itzg/minecraft-server | ||
environment: | ||
- EULA=TRUE | ||
- ONLINE_MODE=FALSE | ||
- TYPE=PAPER | ||
- SPIGOT_BUNGEE=true | ||
- BUNGEECORD_IP=0.0.0.0 | ||
- VERSION=1.20.2 | ||
# - BUILD_FROM_SOURCE=true | ||
volumes: | ||
- ./velocity-spigot2:/data | ||
- ./plugins:/plugins | ||
|
||
velocity: | ||
restart: on-failure | ||
image: itzg/bungeecord | ||
ports: | ||
- 25565:25565 | ||
environment: | ||
- TYPE=VELOCITY | ||
- EULA=TRUE | ||
volumes: | ||
- ./plugins:/plugins | ||
- ./velocity:/config |
Binary file not shown.
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 @@ | ||
big L |
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 @@ | ||
[ | ||
{ | ||
"uuid": "88243ba3-382f-4eb0-874f-c5831eb3c0a6", | ||
"name": "ToetMats", | ||
"level": 4, | ||
"bypassesPlayerLimit": false | ||
}, | ||
{ | ||
"uuid": "f0c8657b-f384-4df6-9d66-e9f36c36ce8a", | ||
"name": "Mindgamesnl", | ||
"level": 4, | ||
"bypassesPlayerLimit": false | ||
} | ||
] |
Oops, something went wrong.