Fix cross world radius, log exceptions in event subscribers

This commit is contained in:
Draycia committed 2022-07-23 21:47:18 -07:00
1 parent b5c7b16f8d
commit 4a71b5926e
5 files changed
+23 -10

No files matched your search

@@ -25,6 +25,7 @@ import net.draycia.carbon.api.users.CarbonPlayer;
import net.draycia.carbon.api.util.KeyedRenderer;
import net.kyori.adventure.audience.Audience;
import net.kyori.adventure.text.Component;
import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
import org.checkerframework.checker.nullness.qual.NonNull;
import org.checkerframework.checker.nullness.qual.Nullable;
import org.checkerframework.framework.qual.DefaultQualifier;
@@ -128,7 +129,7 @@ public class CarbonChatEvent implements ResultedCarbonEvent<CarbonChatEvent.Resu
* @return the chat channel
* @since 2.0.0
*/
public @Nullable ChatChannel chatChannel() {
public @MonotonicNonNull ChatChannel chatChannel() {
return this.chatChannel;
}