{"id":15142702,"url":"https://github.com/pmmp/sessionsdemo","last_synced_at":"2025-08-01T07:15:06.622Z","repository":{"id":74367377,"uuid":"566525674","full_name":"pmmp/SessionsDemo","owner":"pmmp","description":"Demo plugin showing how to manage plugin player data at runtime (without custom Player classes)","archived":false,"fork":false,"pushed_at":"2023-06-02T00:48:12.000Z","size":9,"stargazers_count":19,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"stable","last_synced_at":"2025-01-29T21:11:38.504Z","etag":null,"topics":["pocketmine-example-code","pocketmine-plugin"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pmmp.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":"2022-11-15T21:23:25.000Z","updated_at":"2024-06-08T19:04:33.000Z","dependencies_parsed_at":"2024-09-21T15:40:50.699Z","dependency_job_id":null,"html_url":"https://github.com/pmmp/SessionsDemo","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/pmmp%2FSessionsDemo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmmp%2FSessionsDemo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmmp%2FSessionsDemo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmmp%2FSessionsDemo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pmmp","download_url":"https://codeload.github.com/pmmp/SessionsDemo/tar.gz/refs/heads/stable","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237163313,"owners_count":19265249,"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":["pocketmine-example-code","pocketmine-plugin"],"created_at":"2024-09-26T10:00:14.394Z","updated_at":"2025-02-04T17:32:03.785Z","avatar_url":"https://github.com/pmmp.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SessionsDemo\n\nDemo plugin showing how to manage plugin player data at runtime (without custom Player classes)\n\n## Background\nFor far too long I've sat back and watched people misuse `PlayerCreationEvent` for things it wasn't designed for, such as:\n\n- Tracking extra data on the player (e.g. kill count)\n- Adding extra API methods to the player\n\nCustom player classes are one of the worst possible solutions to this problem, so this plugin aims to show a way to track plugin-player data in a way that is:\n\n- Extremely simple\n- Easy to read and write\n- Multiple-plugin friendly (no more fighting for your player class to be registered)\n- Almost impossible to break\n\n## Can I copy this code?\nI hope someone does. If it stops one person from abusing `PlayerCreationEvent`...\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmmp%2Fsessionsdemo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpmmp%2Fsessionsdemo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmmp%2Fsessionsdemo/lists"}