mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-18 20:14:31 +00:00
Fix command resending when permissibles are recalculated
This commit is contained in:
@@ -441,7 +441,6 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
|
|||||||
|
|
||||||
$this->recalculatePermissions();
|
$this->recalculatePermissions();
|
||||||
$this->sendSettings();
|
$this->sendSettings();
|
||||||
$this->sendCommandData();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -496,6 +495,8 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
|
|||||||
if($this->hasPermission(Server::BROADCAST_CHANNEL_ADMINISTRATIVE)){
|
if($this->hasPermission(Server::BROADCAST_CHANNEL_ADMINISTRATIVE)){
|
||||||
$this->server->getPluginManager()->subscribeToPermission(Server::BROADCAST_CHANNEL_ADMINISTRATIVE, $this);
|
$this->server->getPluginManager()->subscribeToPermission(Server::BROADCAST_CHANNEL_ADMINISTRATIVE, $this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$this->sendCommandData();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -505,7 +506,7 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
|
|||||||
return $this->perm->getEffectivePermissions();
|
return $this->perm->getEffectivePermissions();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function sendCommandData(){
|
public function sendCommandData(){
|
||||||
$pk = new AvailableCommandsPacket();
|
$pk = new AvailableCommandsPacket();
|
||||||
$data = new \stdClass();
|
$data = new \stdClass();
|
||||||
$count = 0;
|
$count = 0;
|
||||||
|
Reference in New Issue
Block a user