From f817c233bdf58ae4003b77c8fe028f366869a09e Mon Sep 17 00:00:00 2001 From: Apehum Date: Sun, 19 May 2024 04:43:17 +0800 Subject: [PATCH] feat: add methods to remove and clear ServerActivation listeners --- .../audio/capture/ServerActivation.java | 57 ++++++++++++++++++- .../audio/capture/VoiceServerActivation.kt | 21 +++++++ 2 files changed, 75 insertions(+), 3 deletions(-) diff --git a/api/server-proxy-common/src/main/java/su/plo/voice/api/server/audio/capture/ServerActivation.java b/api/server-proxy-common/src/main/java/su/plo/voice/api/server/audio/capture/ServerActivation.java index fd3bf126..1700968c 100644 --- a/api/server-proxy-common/src/main/java/su/plo/voice/api/server/audio/capture/ServerActivation.java +++ b/api/server-proxy-common/src/main/java/su/plo/voice/api/server/audio/capture/ServerActivation.java @@ -119,7 +119,7 @@ default boolean checkPermissions(@NotNull VoicePlayer player) { void setProximity(boolean proximity); /** - * Invoked when a player uses the activation and meets all requirements: + * Adds a new listener that will be invoked when a player uses the activation and meets all requirements: *