mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-10 21:45:35 +00:00
Server: add native return types to getters that were skipped first time
This commit is contained in:
parent
0e0bbdfb70
commit
2ca7fc7254
@ -327,10 +327,7 @@ class Server{
|
|||||||
return $str !== "" ? $str : "0.0.0.0";
|
return $str !== "" ? $str : "0.0.0.0";
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
public function getServerUniqueId() : UuidInterface{
|
||||||
* @return UuidInterface
|
|
||||||
*/
|
|
||||||
public function getServerUniqueId(){
|
|
||||||
return $this->serverID;
|
return $this->serverID;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -361,38 +358,23 @@ class Server{
|
|||||||
return $this->configGroup->getConfigString("motd", VersionInfo::NAME . " Server");
|
return $this->configGroup->getConfigString("motd", VersionInfo::NAME . " Server");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
public function getLoader() : \DynamicClassLoader{
|
||||||
* @return \DynamicClassLoader
|
|
||||||
*/
|
|
||||||
public function getLoader(){
|
|
||||||
return $this->autoloader;
|
return $this->autoloader;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
public function getLogger() : \AttachableThreadedLogger{
|
||||||
* @return \AttachableThreadedLogger
|
|
||||||
*/
|
|
||||||
public function getLogger(){
|
|
||||||
return $this->logger;
|
return $this->logger;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
public function getUpdater() : AutoUpdater{
|
||||||
* @return AutoUpdater
|
|
||||||
*/
|
|
||||||
public function getUpdater(){
|
|
||||||
return $this->updater;
|
return $this->updater;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
public function getPluginManager() : PluginManager{
|
||||||
* @return PluginManager
|
|
||||||
*/
|
|
||||||
public function getPluginManager(){
|
|
||||||
return $this->pluginManager;
|
return $this->pluginManager;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
public function getCraftingManager() : CraftingManager{
|
||||||
* @return CraftingManager
|
|
||||||
*/
|
|
||||||
public function getCraftingManager(){
|
|
||||||
return $this->craftingManager;
|
return $this->craftingManager;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -444,10 +426,7 @@ class Server{
|
|||||||
return $this->startTime;
|
return $this->startTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
public function getCommandMap() : SimpleCommandMap{
|
||||||
* @return SimpleCommandMap
|
|
||||||
*/
|
|
||||||
public function getCommandMap(){
|
|
||||||
return $this->commandMap;
|
return $this->commandMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -668,17 +647,11 @@ class Server{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
public function getNameBans() : BanList{
|
||||||
* @return BanList
|
|
||||||
*/
|
|
||||||
public function getNameBans(){
|
|
||||||
return $this->banByName;
|
return $this->banByName;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
public function getIPBans() : BanList{
|
||||||
* @return BanList
|
|
||||||
*/
|
|
||||||
public function getIPBans(){
|
|
||||||
return $this->banByIP;
|
return $this->banByIP;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -718,17 +691,11 @@ class Server{
|
|||||||
return $this->operators->exists($name, true);
|
return $this->operators->exists($name, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
public function getWhitelisted() : Config{
|
||||||
* @return Config
|
|
||||||
*/
|
|
||||||
public function getWhitelisted(){
|
|
||||||
return $this->whitelist;
|
return $this->whitelist;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
public function getOps() : Config{
|
||||||
* @return Config
|
|
||||||
*/
|
|
||||||
public function getOps(){
|
|
||||||
return $this->operators;
|
return $this->operators;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1405,10 +1372,7 @@ class Server{
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
public function getQueryInformation() : QueryInfo{
|
||||||
* @return QueryInfo
|
|
||||||
*/
|
|
||||||
public function getQueryInformation(){
|
|
||||||
return $this->queryInfo;
|
return $this->queryInfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1587,10 +1551,7 @@ class Server{
|
|||||||
$this->uniquePlayers = [];
|
$this->uniquePlayers = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
public function getLanguage() : Language{
|
||||||
* @return Language
|
|
||||||
*/
|
|
||||||
public function getLanguage(){
|
|
||||||
return $this->language;
|
return $this->language;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1598,17 +1559,11 @@ class Server{
|
|||||||
return $this->forceLanguage;
|
return $this->forceLanguage;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
public function getNetwork() : Network{
|
||||||
* @return Network
|
|
||||||
*/
|
|
||||||
public function getNetwork(){
|
|
||||||
return $this->network;
|
return $this->network;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
public function getMemoryManager() : MemoryManager{
|
||||||
* @return MemoryManager
|
|
||||||
*/
|
|
||||||
public function getMemoryManager(){
|
|
||||||
return $this->memoryManager;
|
return $this->memoryManager;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user