public class CloudServer extends Object implements ICloudService
| Modifier and Type | Class and Description |
|---|---|
private class |
CloudServer.NetworkHandlerImpl |
| Modifier and Type | Field and Description |
|---|---|
private boolean |
allowAutoStart |
private BukkitBootstrap |
bukkitBootstrap |
private Map<UUID,de.dytanic.cloudnet.lib.player.CloudPlayer> |
cloudPlayers |
private String |
hostAdress |
private static CloudServer |
instance |
private int |
maxPlayers |
private int |
memory |
private String |
motd |
private int |
port |
private de.dytanic.cloudnet.lib.server.ServerConfig |
serverConfig |
private de.dytanic.cloudnet.lib.server.ServerState |
serverState |
private de.dytanic.cloudnet.lib.server.template.Template |
template |
| Constructor and Description |
|---|
CloudServer(BukkitBootstrap bukkitBootstrap,
CloudAPI cloudAPI) |
| Modifier and Type | Method and Description |
|---|---|
private void |
addTeamEntry(org.bukkit.entity.Player target,
org.bukkit.entity.Player all,
de.dytanic.cloudnet.lib.player.permission.PermissionGroup permissionGroup) |
void |
changeToIngame()
Changed the State to INGAME and Start a gameserver
|
de.dytanic.cloudnet.lib.player.CloudPlayer |
getCachedPlayer(String name) |
de.dytanic.cloudnet.lib.player.CloudPlayer |
getCachedPlayer(UUID uniqueId) |
Map<UUID,de.dytanic.cloudnet.lib.player.CloudPlayer> |
getClonedCloudPlayers() |
Map<UUID,de.dytanic.cloudnet.lib.player.CloudPlayer> |
getCloudPlayers()
Returns the cached CloudPlayer Objectives
|
de.dytanic.cloudnet.lib.server.SimpleServerGroup |
getGroupData()
Returns the SimpleServerGroup of the instance
|
String |
getHostAdress() |
static CloudServer |
getInstance()
Returns the instance from the CloudServer
|
int |
getMaxPlayers()
Returns the max players from the acceptings
|
String |
getMotd()
Returns the motd from the server marks for the cloud
|
double |
getPercentOfPlayerNowOnline() |
void |
getPlayerAndCache(UUID uniqueId)
Deprecated.
|
org.bukkit.plugin.java.JavaPlugin |
getPlugin()
Returns the Plugin instance from this CLoud-System
|
int |
getPort() |
de.dytanic.cloudnet.lib.server.ServerConfig |
getServerConfig()
Returns the serverConfig from this instance
|
de.dytanic.cloudnet.lib.server.ServerProcessMeta |
getServerProcessMeta()
Returns the ServerProcessMeta for the bootstrap of the software
|
Map<String,de.dytanic.cloudnet.lib.server.info.ServerInfo> |
getServers() |
de.dytanic.cloudnet.lib.server.ServerState |
getServerState()
Returns the ServerState from this instance
|
de.dytanic.cloudnet.lib.server.template.Template |
getTemplate()
Returns the Template of the ServerInfo
|
private void |
initScoreboard(org.bukkit.entity.Player all) |
boolean |
isAllowAutoStart()
Checks if this instance can starting game servers auto
|
boolean |
isProxyInstance() |
void |
registerCommand(org.bukkit.command.Command command)
Registerd one command
|
void |
setAllowAutoStart(boolean allowAutoStart)
You can disable the Autostart funtction from this server
|
void |
setMaxPlayers(int maxPlayers)
Set the maxPlayers from this instance
|
void |
setMaxPlayersAndUpdate(int maxPlayers) |
void |
setMotd(String motd)
Sets the Motd for the ServerInfo
|
void |
setMotdAndUpdate(String motd) |
void |
setServerConfig(de.dytanic.cloudnet.lib.server.ServerConfig serverConfig)
Sets the serverConfig in a new default style
|
void |
setServerState(de.dytanic.cloudnet.lib.server.ServerState serverState)
Set the serverState INGAME, LOBBY, OFFLINE for switching Signs or your API thinks
|
void |
setServerStateAndUpdate(de.dytanic.cloudnet.lib.server.ServerState serverStateAndUpdate) |
void |
update()
Updates the ServerInfo
|
void |
updateAsync()
Updates the ServerInfo on a asynchronized BukkitScheduler Task
|
void |
updateDisable() |
void |
updateNameTags(org.bukkit.entity.Player player) |
void |
updateNameTags(org.bukkit.entity.Player player,
Function<org.bukkit.entity.Player,de.dytanic.cloudnet.lib.player.permission.PermissionGroup> playerPermissionGroupFunction) |
void |
updateNameTags(org.bukkit.entity.Player player,
Function<org.bukkit.entity.Player,de.dytanic.cloudnet.lib.player.permission.PermissionGroup> playerPermissionGroupFunction,
Function<org.bukkit.entity.Player,de.dytanic.cloudnet.lib.player.permission.PermissionGroup> allOtherPlayerPermissionGroupFunction) |
private static CloudServer instance
private BukkitBootstrap bukkitBootstrap
private int maxPlayers
private String motd
private String hostAdress
private int port
private de.dytanic.cloudnet.lib.server.ServerState serverState
private de.dytanic.cloudnet.lib.server.ServerConfig serverConfig
private de.dytanic.cloudnet.lib.server.template.Template template
private int memory
private boolean allowAutoStart
public CloudServer(BukkitBootstrap bukkitBootstrap, CloudAPI cloudAPI)
public static CloudServer getInstance()
public void updateDisable()
public void updateAsync()
public void changeToIngame()
public boolean isAllowAutoStart()
public void update()
public void setAllowAutoStart(boolean allowAutoStart)
allowAutoStart - @Deprecated public void getPlayerAndCache(UUID uniqueId)
public void setServerStateAndUpdate(de.dytanic.cloudnet.lib.server.ServerState serverStateAndUpdate)
public int getPort()
public String getHostAdress()
public de.dytanic.cloudnet.lib.server.ServerConfig getServerConfig()
public void setServerConfig(de.dytanic.cloudnet.lib.server.ServerConfig serverConfig)
serverConfig - public de.dytanic.cloudnet.lib.server.ServerState getServerState()
public void setServerState(de.dytanic.cloudnet.lib.server.ServerState serverState)
serverState - public int getMaxPlayers()
public void setMaxPlayers(int maxPlayers)
maxPlayers - public void setMaxPlayersAndUpdate(int maxPlayers)
public void setMotdAndUpdate(String motd)
public String getMotd()
public void setMotd(String motd)
motd - public de.dytanic.cloudnet.lib.server.template.Template getTemplate()
public void registerCommand(org.bukkit.command.Command command)
command - public de.dytanic.cloudnet.lib.server.SimpleServerGroup getGroupData()
public double getPercentOfPlayerNowOnline()
public org.bukkit.plugin.java.JavaPlugin getPlugin()
public de.dytanic.cloudnet.lib.server.ServerProcessMeta getServerProcessMeta()
public void updateNameTags(org.bukkit.entity.Player player)
player - public void updateNameTags(org.bukkit.entity.Player player,
Function<org.bukkit.entity.Player,de.dytanic.cloudnet.lib.player.permission.PermissionGroup> playerPermissionGroupFunction)
public void updateNameTags(org.bukkit.entity.Player player,
Function<org.bukkit.entity.Player,de.dytanic.cloudnet.lib.player.permission.PermissionGroup> playerPermissionGroupFunction,
Function<org.bukkit.entity.Player,de.dytanic.cloudnet.lib.player.permission.PermissionGroup> allOtherPlayerPermissionGroupFunction)
public Map<UUID,de.dytanic.cloudnet.lib.player.CloudPlayer> getCloudPlayers()
private void initScoreboard(org.bukkit.entity.Player all)
private void addTeamEntry(org.bukkit.entity.Player target,
org.bukkit.entity.Player all,
de.dytanic.cloudnet.lib.player.permission.PermissionGroup permissionGroup)
public de.dytanic.cloudnet.lib.player.CloudPlayer getCachedPlayer(UUID uniqueId)
getCachedPlayer in interface ICloudServicepublic de.dytanic.cloudnet.lib.player.CloudPlayer getCachedPlayer(String name)
getCachedPlayer in interface ICloudServicepublic boolean isProxyInstance()
isProxyInstance in interface ICloudServicepublic Map<String,de.dytanic.cloudnet.lib.server.info.ServerInfo> getServers()
getServers in interface ICloudServiceCopyright © 2020. All rights reserved.