Base plugin class.
More...
Inherits JavaPlugin.
Base plugin class.
- Author
- authorblues
AutoRefPlayer org.mctourney.autoreferee.AutoReferee.clearTNTOwner |
( |
Entity |
entity) | |
|
Clears out a primed TNT from the tracked list.
- Parameters
-
World org.mctourney.autoreferee.AutoReferee.getConsoleWorld |
( |
) | |
|
Gets the world that the console user has selected.
- Returns
- The world selected by the console user
AutoRefTeam org.mctourney.autoreferee.AutoReferee.getExpectedTeam |
( |
Player |
player) | |
|
Gets the team the player is expected to join.
Matches setup by automated match configurations may designate certain players for certain teams.
- Returns
- player's team, null if no such team
static AutoReferee org.mctourney.autoreferee.AutoReferee.getInstance |
( |
) | |
|
|
static |
World org.mctourney.autoreferee.AutoReferee.getLobbyWorld |
( |
) | |
|
Gets the world designated as the lobby world.
When the server is in automated mode, this world is where users will be teleported to when the a match is unloaded and cleaned up.
- Returns
- lobby world
AutoRefMatch org.mctourney.autoreferee.AutoReferee.getMatch |
( |
World |
world) | |
|
Gets match object associated with the given world.
- Returns
- match object if one exists, otherwise null
Collection<AutoRefMatch> org.mctourney.autoreferee.AutoReferee.getMatches |
( |
) | |
|
Gets all existing match objects for this server.
- Returns
- a collection of match objects
AutoRefTeam org.mctourney.autoreferee.AutoReferee.getTeam |
( |
Player |
player) | |
|
Gets team object associated with a player.
Searches all matches for this player, returns team object for the team containing this player.
- Returns
- team object if player is on team, otherwise null
AutoRefPlayer org.mctourney.autoreferee.AutoReferee.getTNTOwner |
( |
Entity |
entity) | |
|
Gets the player responsible for a primed TNT.
- Parameters
-
void org.mctourney.autoreferee.AutoReferee.sendMessageSync |
( |
CommandSender |
recipient, |
|
|
String... |
msgs |
|
) |
| |
Force a message to be sent synchronously.
Safe to use from an asynchronous task.
- Parameters
-
void org.mctourney.autoreferee.AutoReferee.setLobbyWorld |
( |
World |
world) | |
|
Sets the world designated as the lobby world.
- Parameters
-
void org.mctourney.autoreferee.AutoReferee.setTNTOwner |
( |
Entity |
entity, |
|
|
AutoRefPlayer |
apl |
|
) |
| |
Sets the player responsible for a primed TNT.
- Parameters
-
entity | primed tnt entity |
apl | player responsible for tnt |
The documentation for this class was generated from the following file: