{"id":35098710,"url":"https://github.com/yuhangle/endstone-territory","last_synced_at":"2026-02-05T04:08:03.669Z","repository":{"id":280471323,"uuid":"942107894","full_name":"yuhangle/endstone-territory","owner":"yuhangle","description":"A three-dimensional territory plugin developed for Endstone using C++. 使用C++开发的适用于Endstone的三维领地插件","archived":false,"fork":false,"pushed_at":"2026-01-22T10:21:42.000Z","size":416,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-23T01:11:31.404Z","etag":null,"topics":["endstone","plugins","territory"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yuhangle.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-03-03T15:30:30.000Z","updated_at":"2026-01-22T10:21:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"d35c5d42-8d6d-4157-8beb-f7ef68a7559c","html_url":"https://github.com/yuhangle/endstone-territory","commit_stats":null,"previous_names":["yuhangle/endstone-territory"],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/yuhangle/endstone-territory","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuhangle%2Fendstone-territory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuhangle%2Fendstone-territory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuhangle%2Fendstone-territory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuhangle%2Fendstone-territory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yuhangle","download_url":"https://codeload.github.com/yuhangle/endstone-territory/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuhangle%2Fendstone-territory/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29110985,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T03:44:17.043Z","status":"ssl_error","status_checked_at":"2026-02-05T03:44:12.077Z","response_time":65,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["endstone","plugins","territory"],"created_at":"2025-12-27T16:11:02.578Z","updated_at":"2026-02-05T04:08:03.664Z","avatar_url":"https://github.com/yuhangle.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"![header](https://capsule-render.vercel.app/api?type=waving\u0026height=300\u0026color=gradient\u0026text=Territory%20Plugin\u0026textBg=false\u0026desc=About%20A%20three-dimensional%20territory%20plugin%20developed%20for%20Endstone%20\u0026descAlignY=70\u0026fontColor=802e82\u0026reversal=false)\n\n\u003e The plugin is still under development, feedback is welcome.\n\n[简体中文](README_zh-CN.md)\n\n## Introduction\n\nThe Territory plugin is a 3D territory management plugin developed in C++ for the endstone plugin loader.  It uses an SQLite database to store territory data and supports features such as anti-interaction, anti-block breaking, anti-block placement, anti-entity explosion, preventing general damage to entities within the territory from outsiders, territory teleportation, member management, and adding territory administrators.You can use it to protect buildings of players on endstone server.\n\nThe Territory plugin supports sub-territories, which can be created within a parent territory by the parent territory owner and administrators. Sub-territory permissions and members are independent from the parent territory. Sub-territories are fully controlled by their owners and are not controlled by the parent territory. If a parent territory is deleted, its sub-territories will lose their parent territory tag and become independent territories, and will not be deleted along with the parent territory.\n\nThe Territory plugin supports the integration of the umoney plugin as an economic system, with the economy being disabled by default. After enabling the economy in the configuration file, creating a territory will charge players based on the territory's area multiplied by the unit price. Deleting a territory will refund the player at the current price.\n\n## Features\n\nTerritory plugin is developed using C++ and utilizes SQLite for storing territory data, theoretically offering better performance.\n\n## How to use\n\n\u003e Install\u0026Config\n\n**Install Endstone**\n\nPlease refer to the endstone documentation for this step.\n\n**Download \u0026 Install Territory Plugin**\n\nGo to the Releases page to download the latest version of the plugin archive, then extract it into the plugins folder in your server directory. The directory structure is as follows:\n\nWindows:\n- plugins/\n    - endstone_territory.dll # Plugin file for Windows\n    - territory/ # Data directory\n        - language # Language directory\n\nLinux:\n- plugins/\n    - endstone_territory.so # Plugin file for Linux\n    - territory/ # Data directory\n        - language # Language directory\n\n**Language**\n\nThe plugin defaults to Chinese. You can change the language by replacing the `lang.json` file inside the plugin’s data directory (`territory/`). The GitHub Releases page provides pre-packaged archives with different language versions — currently, Chinese and English are supported. You may also manually edit `lang.json` to adapt it to your preferred language.\n\n**Config**\n\nAfter running the plugin for the first time, a \"territory\" folder will be automatically created in the plugins directory. This folder contains the configuration file \"config.json\" and the territory database file \"territory_data.db\".\n\nThe default configuration of the configuration file is as follows:\n\n```json\n{\n    \"actor_fire_attack_protect\": true,\n    \"language\": \"zh_CN\",\n    \"max_tty_area\": 4000000,\n    \"money_with_umoney\": false,\n    \"player_max_tty_num\": 20,\n    \"price\": 1\n}\n```\n`language` is the language used by the plugin, which is Chinese by default. You can change the configuration according to the language file in the language folder.\n\n`actor_fire_attack_protect` indicates whether to enable creature fire protection, which is enabled by default. While the plugin can intercept direct attacks from players on creatures, if a player's weapon has a fire aspect enchantment, the enchantment effect will still apply to the creatures, causing damage and resulting in incomplete protection. After enabling creature fire protection in the configuration file, unauthorized players will be unable to inflict any damage, including fire aspect damage, on creatures within the territory. However, creatures will also gain immunity to some fire damage.\n\n`max_tty_area` represents the maximum area for a player-created territory, with a default of 4,000,000 units (2000x2000). Territories exceeding this size cannot be created.\n\n`money_with_umoney` indicates whether to use the umoney plugin as the economy system, which is disabled by default. When enabled, creating territories will incur charges to the player through the economic system provided by the umoney plugin.\n\n`player_max_tty_num` is the maximum number of territories a player can own, with a default value of 20.\n\n`price` is the price per unit area of territory, with a default value of 1. When the economy is enabled, this value serves as the price per unit area of territory for calculating the total territory cost.\n\n\u003e Command Usage and Territory Management\n\n**Command list**\n\nOpen territory menu\n\n```shell\n/tty\n```\n\nCreate New Territory\n\n```shell\n/tty add Territory-corner-coordinate-1 Territory-corner-coordinate-2\n```\n\nCreate New Sub_Territory\n\n```shell\n/tty add_sub Sub-Territory-corner-coordinate-1 Sub-Territory-corner-coordinate-2\u003e\n```\n\nList Territory\n\n```shell\n/tty list\n```\n\nDelete Territory\n\n```shell\n/tty del territory-name\n```\n\nRename Terriory\n\n```shell\n/tty rename old-name new-name\n```\n\nSet Territory Permissions\n\n```shell\n/tty set permission(if_jiaohu|if_break|if_tp|if_build|if_bomb|if_damage) true|false territory-name\n```\n\n**Where the permission names respectively represent:**\n\n- Whether to allow outsiders to interact within the territory.\n- Whether to allow outsiders to destroy within the territory.\n- Whether to allow outsiders to teleport to the territory.\n- Whether to allow outsiders to place within the territory.\n- Whether to allow entity explosions within the territory.\n- Whether to allow outsiders to attack entities.\n\nSet Territory Administrators\n\n```shell\n/tty manager add|remove player-name territory-name\n```\n\nSet Terrtory Members\n\n```shell\n/tty member add|remove player-name territory-name\n```\n\nSet Territory Teleport Point\n\n```bash\n/tty settp Territory-teleport-coordinates Territory-name\n```\n\nTeleport to Territory\n\n```bash\n/tty tp territory-name\n```\n\nResize Territory\n\n```bash\n/tty resize territory-name new-coordinate-1 new-coordinate-2\n\n```\n\n**Administrator Commands**\n\nDelete Territory\n\n```bash\n/optty del territory-name\n```\n\nDelete All Territories of a Player\n\n```bash\n/optty del_all player-name\n```\n\nSet Territory Permissions for a Player\n\n```bash\n/optty set permission(if_jiaohu|if_break|if_tp|if_build|if_bomb|if_damage) true|false territory-name\n```\n\nReload Territory Data and Configuration\n\n```bash\n/optty reload\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuhangle%2Fendstone-territory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyuhangle%2Fendstone-territory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuhangle%2Fendstone-territory/lists"}