mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 06:28:54 +00:00
post-rebase cleanup
This commit is contained in:
1 parent
f8e8be9979
commit
56a2ac966a
4 files changed
+24
-3
No files matched your search
@@ -34,6 +34,16 @@ import org.jetbrains.annotations.NotNull;
|
||||
@DefaultQualifier(NonNull.class)
|
||||
class EmptyCarbonPlayer implements CarbonPlayer {
|
||||
|
||||
@Override
|
||||
public double distanceSquaredFrom(final CarbonPlayer other) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean sameWorldAs(final CarbonPlayer other) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String username() {
|
||||
return "";
|
||||
@@ -104,11 +114,21 @@ class EmptyCarbonPlayer implements CarbonPlayer {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean ignoring(final UUID player) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean ignoring(final CarbonPlayer sender) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void ignoring(final UUID player, final boolean nowIgnoring) {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void ignoring(final CarbonPlayer player, final boolean nowIgnoring) {
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ versions:
|
||||
licenser: 0.6.1
|
||||
shadow: 7.1.2
|
||||
adventure: 4.10.1
|
||||
cloud: 1.7.0-SNAPSHOT
|
||||
cloud: 1.7.0+1.18.2-SNAPSHOT
|
||||
configurate: 4.1.2
|
||||
typesafeConfig: 1.4.1
|
||||
checkerQual: 3.22.0
|
||||
|
||||
@@ -47,6 +47,7 @@ import net.draycia.carbon.common.util.PlayerUtils;
|
||||
import net.draycia.carbon.paper.listeners.DiscordMessageListener;
|
||||
import net.draycia.carbon.paper.listeners.PaperChatListener;
|
||||
import net.draycia.carbon.paper.listeners.PaperPlayerJoinListener;
|
||||
import net.draycia.carbon.paper.util.CarbonChatHook;
|
||||
import net.draycia.carbon.paper.util.PaperMessageRenderer;
|
||||
import net.kyori.adventure.audience.Audience;
|
||||
import net.kyori.adventure.text.Component;
|
||||
|
||||
@@ -28,8 +28,8 @@ import net.draycia.carbon.api.CarbonChatProvider;
|
||||
import net.draycia.carbon.api.channels.ChatChannel;
|
||||
import net.draycia.carbon.api.events.CarbonChatEvent;
|
||||
import net.draycia.carbon.api.users.CarbonPlayer;
|
||||
import net.draycia.carbon.bukkit.users.CarbonPlayerBukkit;
|
||||
import net.draycia.carbon.common.util.ChannelUtils;
|
||||
import net.draycia.carbon.paper.users.CarbonPlayerPaper;
|
||||
import net.kyori.adventure.text.serializer.plain.PlainTextComponentSerializer;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.plugin.Plugin;
|
||||
@@ -44,7 +44,7 @@ public class CarbonChatHook implements ChatHook {
|
||||
|
||||
DiscordSRV.debug(Debug.MINECRAFT_TO_DISCORD, "Received a CarbonChatEvent (player: " + carbonPlayer.username() + ")");
|
||||
|
||||
final @Nullable Player player = ((CarbonPlayerBukkit) carbonPlayer).bukkitPlayer();
|
||||
final @Nullable Player player = ((CarbonPlayerPaper) carbonPlayer).bukkitPlayer();
|
||||
final String message = PlainTextComponentSerializer.plainText().serialize(event.message());
|
||||
|
||||
if (player != null) {
|
||||
|
||||
Reference in new issue
Block a user