Moved Player->setGamemode() message to /gamemode command

This commit is contained in:
Shoghi Cervantes
2015-04-15 20:49:38 +02:00
parent 88797d4c6c
commit d6186fa7c6
2 changed files with 1 additions and 2 deletions

View File

@@ -969,10 +969,8 @@ class Player extends Human implements CommandSender, InventoryHolder, IPlayer{
if(($this->gamemode & 0x01) === ($gm & 0x01)){
$this->gamemode = $gm;
$this->sendMessage(new TranslationContainer("gameMode.changed"));
}else{
$this->gamemode = $gm;
$this->sendMessage(new TranslationContainer("gameMode.changed"));
$this->inventory->clearAll();
$this->inventory->sendContents($this);
$this->inventory->sendContents($this->getViewers());