{"id":15018691,"url":"https://github.com/sof3/capital","last_synced_at":"2025-10-23T20:31:13.591Z","repository":{"id":39656069,"uuid":"434813896","full_name":"SOF3/Capital","owner":"SOF3","description":"An extensible economy API for PocketMine-MP.","archived":false,"fork":false,"pushed_at":"2022-10-22T11:38:34.000Z","size":645,"stargazers_count":36,"open_issues_count":19,"forks_count":6,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-30T20:52:30.929Z","etag":null,"topics":["economy","pocketmine","pocketmine-plugins"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SOF3.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}},"created_at":"2021-12-04T05:17:52.000Z","updated_at":"2024-09-29T12:12:48.000Z","dependencies_parsed_at":"2022-08-31T06:51:08.575Z","dependency_job_id":null,"html_url":"https://github.com/SOF3/Capital","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SOF3%2FCapital","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SOF3%2FCapital/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SOF3%2FCapital/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SOF3%2FCapital/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SOF3","download_url":"https://codeload.github.com/SOF3/Capital/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237882172,"owners_count":19381176,"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":["economy","pocketmine","pocketmine-plugins"],"created_at":"2024-09-24T19:52:17.379Z","updated_at":"2025-10-23T20:31:13.088Z","avatar_url":"https://github.com/SOF3.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Capital\n\n[![CI](https://github.com/SOF3/Capital/actions/workflows/ci.yml/badge.svg)](https://github.com/SOF3/Capital/actions/workflows/ci.yml)\n\nAn extensible economy plugin for PocketMine-MP.\n\n## How is Capital different from other economy plugins?\n\nAs a core API for economy, Capital supports different styles of account management:\n\n- You can have the old, simple one-account-per-player mechanism.\n- Or do you like currencies? You can add new currencies to config.yml\n  and other plugins will let you configure which currency to use in each case.\n- Or are currencies too complicated for you?\n  What about just having one account per world?\n  You don't need any special configuration in other plugins!\n- Are commands and form UI boring for you?\n  Maybe use banknote/wallet items\n  so that players lose money when they drop the item?\n  (Capital itself does not support banknote/wallet items,\n  but it is the *only* economy API where both\n  simple accounts and item payment can be used from other plugins\n  without writing code twice)\n- Or maybe sometimes the money goes to the faction bank account\n  instead of player account?\n- Capital is extensible for other plugins to include new account management styles,\n  and it will work automatically with all plugins!\n\nOther cool features include:\n\n- Powerful analytics commands.\n  How much active capital is there?\n  How is wealth distributed on the server?\n  Which industries are the most active?\n  What are the biggest transactions in the server yesterday?\n  Capital can help you answer these questions with label-based analytics.\n- Is editing the config file too confusing for you?\n  Capital supports self-healing configuration.\n  Your config file will be automatically regenerated if something is wrong,\n  and Capital will try its best to guess what you really wanted.\n- Supports migration from other economy plugins, including:\n  - EconomyAPI\n- Uses async database access, supporting both SQLite and MySQL.\n  Capital will not lag your server.\n- Safe for multiple servers. Transactions are strictly atomic.\n  Players cannot duplicate money by joining multiple servers.\n\n## Setting up\n\nAfter running the server with Capital the first time,\nCapital generates config.yml and db.yml,\nwhich you can edit to configure Capital.\n\ndb.yml is used for configuring the database used by Capital.\nYou can use sqlite or mysql here.\nThe configuration is same as most other plugins.\n\nconfig.yml is a large config that allows you to change almost everything in Capital.\nRead the comments in config.yml for more information.\nText after `'# xxx:` are comments.\nIf you edit config.yml incorrectly,\nCapital will try to fix the config.yml and save the old one as config.yml.old\nso that you can refer to it if Capital fixed it incorrectly.\n\n## Default commands\n\nAll commands in Capital can be configured in config.yml.\nTry searching them in the config file to find out the correct place.\nThe following commands come from the default config:\n\nPlayer commands:\n\n- `/pay \u003cplayer\u003e \u003camount\u003e [account...]`:\n  Pay money to another player with your own account.\n- `/checkmoney`:\n  Check your own wealth.\n- `/richest`:\n  View the richest players on the server.\n\nAdmin commands:\n\n- `/addmoney \u003cplayer\u003e \u003camount\u003e [account...]`:\n  Add money to a player's account.\n- `/takemoney \u003cplayer\u003e \u003camount\u003e [account...]`:\n  Remove money from a player's account.\n- `/checkmoney \u003cplayer\u003e`:\n  Check the wealth of another player.\n\n`[account...]` can be used to select the account (e.g. currency)\nif you change the schema in config.yml.\n(You can still disable these arguments by setting up `selector` in config.yml)\n\nYou can create many other useful commands by editing config.yml,\ne.g. check how much money was paid by `/pay` command!\nCheck out the comments in config.yml for more information.\n\n## Community, Contact \u0026amp; Contributing\n\nIf you want to get help, share your awesome config setup\nor show off your cool plugin that uses Capital,\ncreate a discussion [on GitHub](https://github.com/SOF3/Capital/discussions).\n\nTo report bugs, create an issue [on GitHub](https://github.com/SOF3/Capital/issues).\n\nIf you want to help with developing Capital,\nsee [dev.md](dev.md) for a comprehensive walkthrough of the internals.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsof3%2Fcapital","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsof3%2Fcapital","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsof3%2Fcapital/lists"}