stilling/minecraft-rcon 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

stilling/minecraft-rcon

最新稳定版本:v0.1.1

Composer 安装命令:

composer require stilling/minecraft-rcon

包简介

Lightweight Minecraft RCON client supporting multi-packet responses.

README 文档

README

tests Packagist Version

Lightweight Minecraft RCON client supporting multi-packet responses. Based on PHP-Minecraft-Rcon by thedudeguy.

composer require stilling/minecraft-rcon
use Stilling\MinecraftRcon\Rcon;

$rcon = new Rcon(
    "mc.example.com",
    "25565",
    "super-secret-password",
);
$rcon->connect();
$response = $rcon->sendCommand("data get entity @e[limit=1]");

var_dump($response);
// string(792) "Pig has the following entity data: {variant: "minecraft:temperate", DeathTime: 0s, OnGround: 1b, LeftHanded: 0b, AbsorptionAmount: 0.0f, Invulnerable: 0b, Brain: {memories: {}}, Age: 0, Rotation: [225.00148f, 0.0f], HurtByTimestamp: 0, attributes: [{modifiers: [{amount: 0.05006394748174687d, operation: "add_multiplied_base", id: "minecraft:random_spawn_bonus"}], base: 16.0d, id: "minecraft:follow_range"}, {base: 0.25d, id: "minecraft:movement_speed"}], ForcedAge: 0, fall_distance: 0.0d, Air: 300s, UUID: [I; 2036213014, 1672495779, -2115405465, 2041861210], Fire: 0s, Motion: [0.0d, -0.0784000015258789d, 0.0d], Pos: [-128.75220754374612d, 71.0d, -69.24781649456469d], Health: 10.0f, CanPickUpLoot: 0b, HurtTime: 0s, FallFlying: 0b, PersistenceRequired: 0b, InLove: 0, PortalCooldown: 0}"

$rcon->disconnect();

统计信息

  • 总下载量: 8
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-08-29

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固