{"id":25091368,"url":"https://github.com/taskov1ch/limbocrates","last_synced_at":"2025-04-01T20:34:48.384Z","repository":{"id":276017327,"uuid":"927779064","full_name":"Taskov1ch/LimboCrates","owner":"Taskov1ch","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-14T13:00:57.000Z","size":321,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"pm5","last_synced_at":"2025-02-14T14:20:08.510Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","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/Taskov1ch.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":"2025-02-05T14:31:09.000Z","updated_at":"2025-02-14T13:01:01.000Z","dependencies_parsed_at":"2025-02-14T14:20:07.266Z","dependency_job_id":null,"html_url":"https://github.com/Taskov1ch/LimboCrates","commit_stats":null,"previous_names":["taskov1ch/limbocrated","taskov1ch/limbocrates"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Taskov1ch%2FLimboCrates","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Taskov1ch%2FLimboCrates/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Taskov1ch%2FLimboCrates/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Taskov1ch%2FLimboCrates/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Taskov1ch","download_url":"https://codeload.github.com/Taskov1ch/LimboCrates/tar.gz/refs/heads/pm5","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246709932,"owners_count":20821297,"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":[],"created_at":"2025-02-07T13:19:46.992Z","updated_at":"2025-04-01T20:34:48.377Z","avatar_url":"https://github.com/Taskov1ch.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## What is this?\n[Here](https://youtu.be/IfdiEW4MiSo?si=GWGqiBXFklcBlo3w), [here](https://youtu.be/i7Me-RYVneM?si=MNHyf9rCYNzv5HMI), [here](https://youtu.be/pbY2v1Nf6N4?si=Zz7bQWrKrNCrhXFw), and [here](https://youtu.be/8vc2YoLWM0c?si=SoJvHpnj9c-jEWGR), too.\n\nAll of this is called **Final Part** from **Limbo - Geometry Dash**, also known as **Limbo Keys**.  \n\nThis plugin is based on this level mechanic.  \n\n## Features  \n- Key storage for opening crates is saved in a database, configurable in **config.yml**.  \n- Key restoration if an unexpected event occurs while opening a crate (server shutdown, player disconnects before completion, etc.).  \n- Ability to create an unlimited number of crates with different types and unique rewards.  \n- Execution of reward commands as the console, eliminating the need for integration with other plugins.  \n- Creation of floating texts *(see **Dependencies**).*  \n\n## Commands  \n|Command|Permission|Description|  \n|:-:|:-:|:-:|  \n|`addkeys \u003cplayer: str\u003e \u003cvalue: int\u003e`|`limbo.crates.addkeys`|Give a specific player a certain number of keys|  \n|`takekeys \u003cplayer: str\u003e \u003cvalue: int\u003e`|`limbo.crates.talekeys`|Take away a certain number of keys from a player|  \n|`mykeys`|`limbo.crates.mykeys` *(default)*|Check the number of keys you have|  \n|`createcrate \u003cname: str\u003e`|`limbo.crates.createcrate`|Enter crate creation mode. Use the command again to exit the mode|  \n|`deletecrate \u003cname: str\u003e`|`limbo.crates.deletecrate`|Delete a specific crate|  \n\n## For Developers  \n```php\n// Example of working with player keys  \n\n/** @var \\Taskov1ch\\LimboCrates\\keys\\Keys */  \n$keys = Server::getInstance()-\u003egetPlugin(\"LimboCrates\")-\u003egetKeysManager();  \n\n/** @var string */  \n$name = $player-\u003egetName();  \n\n// Add keys  \n$keys-\u003eaddKeys($name, 999);  \n\n// Take keys  \n$keys-\u003etakeKeys($name, 999);  \n\n// Get the number of keys (Promise)  \n$keys-\u003egetKeys($name)-\u003eonCompletion(  \n\tfn (int $keys) =\u003e var_dump($keys),  \n\tfn () =\u003e var_dump(\"?\")  \n);  \n```\n```php\n// Example of working with crates  \n\n/** @var \\Taskov1ch\\LimboCrates\\crates\\Crates */  \n$crates = Server::getInstance()-\u003egetPlugin(\"LimboCrates\")-\u003egetCratesManager();  \n\n// Register a crate  \n$crates-\u003eregisterCrate(  \n\t\"example\",  \n\tnew Position(0, 4, 0, $world),  \n\t\"Example Crate\",  \n\t[  \n\t\t[  \n\t\t\t\"name\" =\u003e \"Example Reward\",  \n\t\t\t\"chance\" =\u003e 50,  \n\t\t\t\"commands\" =\u003e [\"give {player} diamond 64\"]  \n\t\t],  \n\t\t[  \n\t\t\t\"name\" =\u003e \"Example Reward 2\",  \n\t\t\t\"chance\" =\u003e 50,  \n\t\t\t\"commands\" =\u003e [\"give {player} grass 64\"]  \n\t\t]  \n\t]  \n);  \n\n// Unregister a crate  \n$crates-\u003eunregisterCrate(\"example\");  \n```\n\n## Dependencies  \n- Plugin: [WFT](https://poggit.pmmp.io/p/WFT)  \n- Virion (library): [libasynql](https://poggit.pmmp.io/ci/poggit/libasynql/libasynql)  \n\n## Bugs and Issues  \nNo issues were found during testing, and any discovered were fixed. However, **[ISSUES](https://github.com/Taskov1ch/LimboCrates/issues)** is always open.  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaskov1ch%2Flimbocrates","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftaskov1ch%2Flimbocrates","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaskov1ch%2Flimbocrates/lists"}