Add @throws docs.

Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
This commit is contained in:
Dongjoon Hyun
2016-02-17 11:41:02 -08:00
parent fe2957c315
commit 302fb9e65e
3 changed files with 12 additions and 0 deletions

View File

@ -1029,6 +1029,8 @@ class Server{
* @param bool $forceUnload
*
* @return bool
*
* @throws \InvalidStateException
*/
public function unloadLevel(Level $level, $forceUnload = false){
if($level === $this->getDefaultLevel() and !$forceUnload){