{"id":18860112,"url":"https://github.com/endstonemc/cpp-example-plugin","last_synced_at":"2025-04-14T12:24:49.556Z","repository":{"id":190018132,"uuid":"681235543","full_name":"EndstoneMC/cpp-example-plugin","owner":"EndstoneMC","description":"C++ example plugin for Endstone servers","archived":false,"fork":false,"pushed_at":"2025-03-03T17:35:27.000Z","size":87,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T01:47:13.553Z","etag":null,"topics":["bedrock","bedrock-dedicated-server","cplusplus","cpp","minecraft","plugin"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/EndstoneMC.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-21T15:07:29.000Z","updated_at":"2025-03-03T17:35:30.000Z","dependencies_parsed_at":"2024-03-24T00:21:44.061Z","dependency_job_id":"7d7a27b6-5540-4159-85db-529071f1cd88","html_url":"https://github.com/EndstoneMC/cpp-example-plugin","commit_stats":null,"previous_names":["endstonemc/cpp-plugin-template","endstonemc/cpp-example-plugin"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EndstoneMC%2Fcpp-example-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EndstoneMC%2Fcpp-example-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EndstoneMC%2Fcpp-example-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EndstoneMC%2Fcpp-example-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EndstoneMC","download_url":"https://codeload.github.com/EndstoneMC/cpp-example-plugin/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248879288,"owners_count":21176473,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bedrock","bedrock-dedicated-server","cplusplus","cpp","minecraft","plugin"],"created_at":"2024-11-08T04:21:40.983Z","updated_at":"2025-04-14T12:24:49.495Z","avatar_url":"https://github.com/EndstoneMC.png","language":"C++","readme":"# Endstone C++ Example Plugin\n\nWelcome to the example C++ plugin for Endstone servers.\n\n## Prerequisites\n\n### Windows\n\n- Visual Studio 2017 or newer\n\n### Linux\n\n- Clang 5 or higher\n- libc++ installed\n\n## Structure Overview\n\n```\ncpp-example-plugin/\n├── include/                      # Header files for the plugin\n│   ├── example_listener.h        # Header for the ExampleListener class\n│   ├── example_plugin.h          # Header for the ExamplePlugin class\n│   └── fibonacci_command.h       # Header for the FibonacciCommand class\n├── src/                          # Source files for the plugin\n│   └── example_plugin.cpp        # Source and metadata for the plugin\n├── .clang-format                 # Configuration for Clang format rules\n├── .gitignore                    # Git ignore rules\n├── CMakeLists.txt                # CMake configuration for building the plugin\n├── LICENSE                       # License details\n└── README.md                     # This file\n```\n\n## Getting Started\n\n1. **Clone this Repository**\n\n   ```bash\n   git clone https://github.com/EndstoneMC/cpp-example-plugin.git\n   ```\n\n2. **Navigate to the Cloned Directory**\n\n   ```bash\n   cd cpp-example-plugin\n   ```\n\n3. **Build Your Plugin**\n\n   ```bash\n   mkdir build\n   cd build\n   cmake -DCMAKE_BUILD_TYPE=Release ..\n   cmake --build .\n   ```\n\n   This process will compile your code and produce a shared library that Endstone servers can load.\n\n   **Note: If you wish to build against a specific version of Endstone, you can modify the `GIT_TAG` in\n   the `CMakeLists.txt` file to point to the desired tag or commit.**\n\n4. **Test Your Plugin**\n\n   Once built, copy the output binary `endstone_example_plugin.dll` (Windows) or `endstone_example_plugin.so` (Linux) to\n   the `plugins` directory of your Endstone server. Start the Endstone server and check the logs to ensure your plugin\n   loads and operates as expected.\n\n## Documentation\n\nFor a deeper dive into the Endstone API and its functionalities, refer to the main\nEndstone [documentation](https://endstone.readthedocs.io) (WIP).\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fendstonemc%2Fcpp-example-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fendstonemc%2Fcpp-example-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fendstonemc%2Fcpp-example-plugin/lists"}