GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - pgmann/SpectatorPlus: This project contains the source of a plugin for Bukkit (v1.0-v2.0), and Spigot (v2.0+).

BranchesTags
Open more actions menu

Latest commit

 

History

436 Commits
436 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
SpectatorPlus
SpectatorPlus
 
 
docs
docs
 
 
.gitignore
.gitignore
 
 
LICENSE.md
LICENSE.md
 
 
README.md
README.md
 
 

Repository files navigation

SpectatorPlus

Quick links · BukkitDev · Dev Builds · JavaDoc · Maven Repo · License


SpectatorPlus is a plugin for Bukkit. For more information and guides on how to use it, see the BukkitDev page .

~ License ~

This project is licensed under the Mozilla Public License v2.0 (MPLv2).
A summary of this licence is available here.

~ Obtaining a Build ~

The source code of this repository is automatically built and is always available here. Older, legacy development builds can be obtained here 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, to be able to build the project.

~ API Usage ~

If 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 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.

<project ...>
    <repositories>
        <repository>
            <id>mvn-pgmann</id>
            <name>pgmann's repository</name>
            <url>https://repo.repsy.io/mvn/pgmann/public/</url>
        </repository>
    </repositories>
    <dependencies>
        <dependency>
            <groupId>com.pgcraft</groupId>
            <artifactId>SpectatorPlus</artifactId>
            <version>B3.0-SNAPSHOT</version>
        </dependency>
    </dependencies>
</project>

You 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.

Once SpectatorPlus is set up as a dependency of your project, you can start using the API.

// Ensure SpectatorPlus is loaded
Plugin spTest = Bukkit.getServer().getPluginManager().getPlugin("SpectatorPlus");
if(spTest == null || !spTest.isEnabled()) return;

// Get a reference to the public API
SpectateAPI spApi = SpectateAPI.getAPI();

// Start using it!
if(spApi.isSpectator(player)) { // Check if 'player' is spectating
    // ...
}
spApi.setSpectating(player, true); // Turn on/off spectate mode for 'player'
Toggles.TOOLS_TELEPORTER_ENABLED.set(true); // Edit the values of each item in toggles.yml

For detailed usage information on how to use the API, you can find its JavaDoc here.

About

This project contains the source of a plugin for Bukkit (v1.0-v2.0), and Spigot (v2.0+).

dev.bukkit.org/bukkit-plugins/spectator/

Topics

bukkit-pluginspigot-plugin

Resources

Readme
MPL-2.0 license
Activity

Stars

11 stars

Watchers

5 watching

Forks

12 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.