velocity actionbar
This commit is contained in:
+53
@@ -4,8 +4,12 @@ import com.velocitypowered.api.proxy.Player;
|
||||
import com.velocitypowered.api.proxy.ServerConnection;
|
||||
import com.velocitypowered.api.proxy.server.RegisteredServer;
|
||||
import net.kyori.adventure.audience.Audience;
|
||||
import net.kyori.adventure.bossbar.BossBar;
|
||||
import net.kyori.adventure.sound.Sound;
|
||||
import net.kyori.adventure.sound.SoundStop;
|
||||
import net.kyori.adventure.text.Component;
|
||||
import net.kyori.adventure.text.serializer.plain.PlainTextComponentSerializer;
|
||||
import net.kyori.adventure.title.Title;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import us.ajg0702.queue.api.players.AdaptedPlayer;
|
||||
import us.ajg0702.queue.api.server.AdaptedServer;
|
||||
@@ -16,6 +20,55 @@ import java.util.Optional;
|
||||
import java.util.UUID;
|
||||
|
||||
public class VelocityPlayer implements AdaptedPlayer, Audience {
|
||||
@Override
|
||||
public void showTitle(@NotNull Title title) {
|
||||
handle.showTitle(title);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void clearTitle() {
|
||||
handle.clearTitle();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void resetTitle() {
|
||||
handle.resetTitle();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void showBossBar(@NotNull BossBar bar) {
|
||||
handle.showBossBar(bar);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void hideBossBar(@NotNull BossBar bar) {
|
||||
handle.hideBossBar(bar);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void playSound(@NotNull Sound sound) {
|
||||
handle.playSound(sound);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void playSound(@NotNull Sound sound, double x, double y, double z) {
|
||||
handle.playSound(sound, x, y, z);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void stopSound(@NotNull Sound sound) {
|
||||
handle.stopSound(sound);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void playSound(@NotNull Sound sound, Sound.@NotNull Emitter emitter) {
|
||||
handle.playSound(sound, emitter);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void stopSound(@NotNull SoundStop stop) {
|
||||
handle.stopSound(stop);
|
||||
}
|
||||
|
||||
final Player handle;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user