{"id":13492448,"url":"https://github.com/pgmann/SpectatorPlus","last_synced_at":"2025-03-28T10:32:13.483Z","repository":{"id":11769702,"uuid":"14306116","full_name":"pgmann/SpectatorPlus","owner":"pgmann","description":"This project contains the source of a plugin for Bukkit (v1.0-v2.0), and Spigot (v2.0+).","archived":false,"fork":false,"pushed_at":"2021-08-17T19:21:56.000Z","size":4386,"stargazers_count":11,"open_issues_count":10,"forks_count":12,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-10-31T06:34:59.099Z","etag":null,"topics":["bukkit-plugin","spigot-plugin"],"latest_commit_sha":null,"homepage":"http://dev.bukkit.org/bukkit-plugins/spectator/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"ruby-concurrency/concurrent-ruby","license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pgmann.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-11-11T16:21:05.000Z","updated_at":"2022-10-09T13:38:22.000Z","dependencies_parsed_at":"2022-09-03T00:22:50.788Z","dependency_job_id":null,"html_url":"https://github.com/pgmann/SpectatorPlus","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgmann%2FSpectatorPlus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgmann%2FSpectatorPlus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgmann%2FSpectatorPlus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgmann%2FSpectatorPlus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pgmann","download_url":"https://codeload.github.com/pgmann/SpectatorPlus/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246012567,"owners_count":20709468,"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":["bukkit-plugin","spigot-plugin"],"created_at":"2024-07-31T19:01:06.185Z","updated_at":"2025-03-28T10:32:08.530Z","avatar_url":"https://github.com/pgmann.png","language":"Java","funding_links":[],"categories":["Java"],"sub_categories":[],"readme":"# SpectatorPlus\n\n#### Quick links · [BukkitDev](https://dev.bukkit.org/projects/spectator) · [Dev Builds](https://github.com/pgmann/SpectatorPlus/actions/workflows/maven-build-master.yml) · [JavaDoc](https://pgmann.cf/SpectatorPlus/javadoc/?com/pgcraft/spectatorplus/SpectateAPI.html) · [Maven Repo](https://repo.repsy.io/mvn/pgmann/public/) · [License](https://www.mozilla.org/MPL/2.0/)\n---\n\nSpectatorPlus is a plugin for Bukkit. For more information and guides on how to use it, [see the BukkitDev page ](http://dev.bukkit.org/bukkit-plugins/spectator/).\n\n#### ~ License ~\n\nThis project is licensed under the [Mozilla Public License v2.0 (MPLv2)](https://www.mozilla.org/MPL/2.0/).  \nA summary of this licence is [available here](https://tldrlegal.com/license/mozilla-public-license-2.0-(mpl-2)#summary).\n\n#### ~ Obtaining a Build ~\n\nThe source code of this repository is automatically built and [is always available here](https://github.com/pgmann/SpectatorPlus/actions/workflows/maven-build-master.yml).\nOlder, legacy development builds [can be obtained here](http://jenkins.carrade.eu/job/SpectatorPlus/) instead. In order to build this project yourself, it is recommended to use **Maven**. If you don't, you will need to import the various dependencies manually, such as [Apache Commons Lang](http://commons.apache.org/proper/commons-lang/), to be able to build the project.\n\n#### ~ API Usage ~\n\nIf you want to integrate SpectatorPlus with your own project, you can either directly import a downloaded `.jar` into your IDE, or if you use Maven, you can reference [my Maven Repository](https://repo.repsy.io/mvn/pgmann/public/) in your `pom.xml` to have the correct version downloaded automatically during building. The advantage of this is that maven will automatically find new updates and download them from my repository.\n\n```xml\n\u003cproject ...\u003e\n    \u003crepositories\u003e\n        \u003crepository\u003e\n            \u003cid\u003emvn-pgmann\u003c/id\u003e\n            \u003cname\u003epgmann's repository\u003c/name\u003e\n            \u003curl\u003ehttps://repo.repsy.io/mvn/pgmann/public/\u003c/url\u003e\n        \u003c/repository\u003e\n    \u003c/repositories\u003e\n    \u003cdependencies\u003e\n        \u003cdependency\u003e\n            \u003cgroupId\u003ecom.pgcraft\u003c/groupId\u003e\n            \u003cartifactId\u003eSpectatorPlus\u003c/artifactId\u003e\n            \u003cversion\u003eB3.0-SNAPSHOT\u003c/version\u003e\n        \u003c/dependency\u003e\n    \u003c/dependencies\u003e\n\u003c/project\u003e\n```\nYou can prefix the dependency version with either an `S` for Stable (Release) or a `B` for Beta (Development). Beta builds need to be postfixed with `-SNAPSHOT`. The Maven Repository stores builds from `B3.0-SNAPSHOT` and onwards.\n\nOnce SpectatorPlus is set up as a dependency of your project, you can start using the API.\n\n```java\n// Ensure SpectatorPlus is loaded\nPlugin spTest = Bukkit.getServer().getPluginManager().getPlugin(\"SpectatorPlus\");\nif(spTest == null || !spTest.isEnabled()) return;\n\n// Get a reference to the public API\nSpectateAPI spApi = SpectateAPI.getAPI();\n\n// Start using it!\nif(spApi.isSpectator(player)) { // Check if 'player' is spectating\n    // ...\n}\nspApi.setSpectating(player, true); // Turn on/off spectate mode for 'player'\nToggles.TOOLS_TELEPORTER_ENABLED.set(true); // Edit the values of each item in toggles.yml\n\n```\nFor detailed usage information on how to use the API, you can find [its JavaDoc here](https://pgmann.cf/SpectatorPlus/javadoc/?com/pgcraft/spectatorplus/SpectateAPI.html).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpgmann%2FSpectatorPlus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpgmann%2FSpectatorPlus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpgmann%2FSpectatorPlus/lists"}