-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v2.0.8
- Loading branch information
Showing
18 changed files
with
120 additions
and
14 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 @@ | ||
net.minecraft.network.chat.contents.PlainTextContents$LiteralContents net.minecraft.network.chat.contents.LiteralContents |
Empty file.
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,6 +1 @@ | ||
- Fixed server bug when player can't hear/speak to others players after respawn | ||
- Fixed crash on Mac OS versions lower than 11 | ||
- Fixed crash on source buffer overflow | ||
- Fixed crash when opus was trying to decode bad frames | ||
- guice is now bundled with JIJ in forge to fix compatibility with other mods | ||
- Fixed crash with EssentialAddons using "reloadFakePlayers" | ||
- 1.20.3 and 1.20.4 support |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
- Fixed error when player was disconnected from the voice server if someone with the same name is trying to join the server | ||
- Fixed error when player was not cleared properly on disconnect and on the next join voice will not work for that player | ||
- Fixed a bug where an AES key was not reset properly after a backend restart |
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
24 changes: 24 additions & 0 deletions
24
proxy/common/src/main/kotlin/su/plo/voice/proxy/event/player/McProxyServerConnectedEvent.kt
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,24 @@ | ||
package su.plo.voice.proxy.event.player | ||
|
||
import su.plo.lib.api.event.MinecraftGlobalEvent | ||
import su.plo.lib.api.proxy.player.MinecraftProxyPlayer | ||
import su.plo.lib.api.proxy.server.MinecraftProxyServerInfo | ||
import su.plo.voice.proxy.event.player.McProxyServerConnectedEvent.Callback | ||
|
||
|
||
/** | ||
* An event fired after the player was successfully connected to the server. | ||
*/ | ||
object McProxyServerConnectedEvent | ||
: MinecraftGlobalEvent<Callback>( | ||
{ callbacks -> | ||
Callback { player, previousServer -> | ||
callbacks.forEach { callback -> callback.onServerConnected(player, previousServer) } | ||
} | ||
} | ||
) { | ||
fun interface Callback { | ||
|
||
fun onServerConnected(player: MinecraftProxyPlayer, previousServer: MinecraftProxyServerInfo?) | ||
} | ||
} |
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,2 +1 @@ | ||
- Fix vanish support [#358](https://github.com/plasmoapp/plasmo-voice/issues/358) | ||
- Fix memory leak when unloading worlds | ||
- [Paper] SuperVanish/PremiumVanish integration with show and hide events |
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
28 changes: 28 additions & 0 deletions
28
server/paper/src/main/kotlin/su/plo/voice/paper/integration/SuperVanishIntegration.kt
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,28 @@ | ||
package su.plo.voice.paper.integration | ||
|
||
import de.myzelyam.api.vanish.PlayerHideEvent | ||
import de.myzelyam.api.vanish.PostPlayerShowEvent | ||
import org.bukkit.event.EventHandler | ||
import org.bukkit.event.Listener | ||
import su.plo.voice.api.server.PlasmoVoiceServer | ||
|
||
class SuperVanishIntegration( | ||
private val voiceServer: PlasmoVoiceServer | ||
) : Listener { | ||
|
||
@EventHandler | ||
fun onPlayerHide(event: PlayerHideEvent) { | ||
val player = voiceServer.playerManager.wrap(event.player) | ||
if (!player.hasVoiceChat()) return | ||
|
||
voiceServer.tcpConnectionManager.broadcastPlayerDisconnect(player) | ||
} | ||
|
||
@EventHandler | ||
fun onPlayerShow(event: PostPlayerShowEvent) { | ||
val player = voiceServer.playerManager.wrap(event.player) | ||
if (!player.hasVoiceChat()) return | ||
|
||
voiceServer.tcpConnectionManager.broadcastPlayerInfoUpdate(player) | ||
} | ||
} |
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