Skip to content

This package provides a simple way to communicate with the Minecraft server. 提供了与我的世界服务器进行交互的简易接口。

License

Notifications You must be signed in to change notification settings

sunxyw/minecraft-protocol

Repository files navigation

MinecraftProtocol

Latest Version on Packagist Total Downloads

This package provides a simple way to communicate with the Minecraft server.

Supported driver:

  • RCON (RemoteConsoleDriver)

Installation

Via Composer

$ composer require sunxyw/minecraft-protocol

Usage

If you are using Laravel, please use the MinecraftProtocol facade directly. You should also publish the configuration by running php artisan vendor:publish --provider="Sunxyw\MinecraftProtocol\MinecraftProtocolServiceProvider". Your connection info can be found in config/minecraft-protocol.php.

Otherwise, please use the specified driver class, you might want to maintain a singleton instance of it by yourself. You will need to pass the host, port and password to the constructor.

For methods, please refer to the DriverInterface.

Testing

$ composer test

Contributing

Please see contributing.md for details and a todolist.

Security

If you discover any security related issues, please email xy2496419818@gmail.com instead of using the issue tracker.

Credits

License

MIT. Please see the license file for more information.

About

This package provides a simple way to communicate with the Minecraft server. 提供了与我的世界服务器进行交互的简易接口。

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages