{"id":18647143,"url":"https://github.com/wesjd/worldlib","last_synced_at":"2025-08-24T15:14:18.101Z","repository":{"id":97974296,"uuid":"52138742","full_name":"WesJD/WorldLib","owner":"WesJD","description":"Some old world management system. I wouldn't recommend using this.","archived":false,"fork":false,"pushed_at":"2016-05-08T17:24:56.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-18T01:37:25.088Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","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/WesJD.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2016-02-20T05:40:23.000Z","updated_at":"2016-06-30T02:58:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"242070e8-13de-4f8f-b0c1-fe57ec81c78e","html_url":"https://github.com/WesJD/WorldLib","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WesJD%2FWorldLib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WesJD%2FWorldLib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WesJD%2FWorldLib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WesJD%2FWorldLib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WesJD","download_url":"https://codeload.github.com/WesJD/WorldLib/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239449586,"owners_count":19640535,"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":"2024-11-07T06:24:54.177Z","updated_at":"2025-02-18T10:19:07.734Z","avatar_url":"https://github.com/WesJD.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WorldLib\n\nA world management system for [Bukkit](http://bukkit.org/).\n\n## How to Use\n### Registration\n```java\npublic class MyPlugin extends JavaPlugin {\n\n    @Override\n    public void onEnable() {\n        WorldLib.getInstance().enable(this);\n    }\n\n    @Override\n    public void onDisable() {\n        WorldLib.getInstance().disable();\n    }\n\n    //example methods\n    {\n        WorldLib.getInstance().getManager().createWorld(WorldType.FLAT, \"MyFlatWorld\");\n        WorldLib.getInstance().getManager().loadWorld(\"MyFlatWorld\");\n        WorldLib.getInstance().getManager().unloadWorld(\"MyFlatWorld\");\n        WorldLib.getInstance().getManager().deleteWorld(\"MtFlatWorld\");\n    }\n\n}\n```\nSimple enough, eh? Call `WorldLib#enable(JavaPlugin)` with your main class as the parameter to enable the system. When you're done with it (really when the server shuts down), call `WorldLib#disable()`. This will save worlds, etc.\n\n### Usage\n```java\n    //example methods\n    {\n        WorldLib.getInstance().getManager().createWorld(WorldType.FLAT, \"MyFlatWorld\");\n        WorldLib.getInstance().getManager().loadWorld(\"MyFlatWorld\");\n        WorldLib.getInstance().getManager().unloadWorld(\"MyFlatWorld\");\n        WorldLib.getInstance().getManager().deleteWorld(\"MtFlatWorld\");\n    }\n```\nAll of these methods are self explanatory. Each one takes a string of the world name as the parameter. These do not need to be called like this either, it is simply showing the methods of WorldManager. You can attempt a creation, deletion, etc of a world as many times as you would like, but it will do nothing if a world with that name already exists.\n\n### Importing\nEither put the source into your project or shade it in with Maven. \n```xml\n\u003cdependencies\u003e\n    \u003cdependency\u003e\n        \u003cgroupId\u003eme.wes\u003c/groupId\u003e\n        \u003cartifactId\u003eworldlib\u003c/artifactId\u003e\n        \u003cversion\u003e1.0-SNAPSHOT\u003c/version\u003e\n    \u003c/dependency\u003e\n    ...\n\u003c/dependencies\u003e\n\n\u003crepositories\u003e\n    \u003crepository\u003e\n        \u003cid\u003ebuildstatic-repo\u003c/id\u003e\n        \u003cname\u003eBuildStatic Repository\u003c/name\u003e\n        \u003curl\u003ehttp://serv.buildstatic.net/maven-repo\u003c/url\u003e\n    \u003c/repository\u003e\n    ...\n\u003c/repositories\u003e\n```\nalternatively, you can download a jar [here](http://ci.buildstatic.net/job/WorldLib/).\n\nHope you use this well.\n\n## Licensing\n\nThis project is registered under the [MIT License](LICENSE.txt).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwesjd%2Fworldlib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwesjd%2Fworldlib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwesjd%2Fworldlib/lists"}