Added extra Exceptions

This commit is contained in:
Shoghi Cervantes
2014-10-28 21:07:12 +01:00
parent b6f7ee20fc
commit 8c4faa8622
37 changed files with 215 additions and 87 deletions

View File

@ -2355,7 +2355,7 @@ class Player extends Human implements CommandSender, InventoryHolder, IPlayer{
*/
public function save(){
if($this->closed){
throw new \Exception("Tried to save closed player");
throw new \InvalidStateException("Tried to save closed player");
}
parent::saveNBT();