mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-16 19:59:11 +00:00
Moved Player->setGamemode() message to /gamemode command
This commit is contained in:
@@ -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());
|
||||
|
Reference in New Issue
Block a user