Skip to content
abshrimpPublic

About

マイクラの近接VC

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

GeyserVC

GeyserMC上で動作する近接VCです

動作要件

  • Java 21
  • Paper 1.21.x
  • Node.js(node コマンドが実行可能であること)
  • https の独自ドメインが使えること(暗号化されていないとマイクが使用できません)

設定ファイル(config.yml)

ports:
  udp: 50000        # マイクラサーバーとNodeサーバーをこのポートで通信させます
  websocket: 8080   # Nodeサーバーとクライアントをこのポートで通信させます
                    #                       (解放し、/wsから飛ばせるようにしておく)
  http: 3000        # 外部からをこのポートに飛ばせるようにしておく

livekit:
  api_key: "your_livekit_api_key"   # LiveKit Cloud の API を取得しておく
  api_secret: "your_livekit_api_secret"
  host: "your_livekit_host_url"
  room_name: "your_room_name"       # [option] LiveKit Cloud のルーム名

api:
  xbl_key: ""
  base_url: "https://your-domain.com"  # 公開ドメイン(証明書を発行して、http で指定したポートに飛ぶようにしておく)

voice:
  max_distance: 40  # 声が届く最大距離(m)

url:
  base: "https://your-domain.com"  # base_url と同じにしておく

コマンド

  • /vcurl

    • プレイヤー実行時: 自分用 VC URL を表示
    • サーバー実行時: /vcurl <player_name> で対象プレイヤーの URL を表示
  • /allmute <true|false>

    • サーバーのみ使用可能
    • 全員をMuteする/元の状態に戻す

Nginx 設定例

server {
    listen 443 ssl;
    server_name your-domain.com;

    ssl_certificate /etc/letsencrypt/live/your-domain.com/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/your-domain.com/privkey.pem;

    location /forceMuteAll {
        allow 127.0.0.1;
        allow ::1;
        deny all;
        proxy_pass http://localhost:3000;
    }

    location /restoreMuteState {
        allow 127.0.0.1;
        allow ::1;
        deny all;
        proxy_pass http://localhost:3000;
    }

    location / {
        proxy_pass http://localhost:3000;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "Upgrade";
    }

    location /ws {
        proxy_pass http://localhost:8080/;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "Upgrade";
    }
}

About

マイクラの近接VC

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages