mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +00:00
Player: fixed immobile interference on PlayerJoinEvent
closes #2894 this should use a cleaner hack that doesn't affect plugins at all, but that's too much work for this one bug fix.
This commit is contained in:
parent
de09c8c082
commit
f6a0f4aa82
@ -1065,6 +1065,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
|
|||||||
return; //avoid player spawning twice (this can only happen on 3.x with a custom malicious client)
|
return; //avoid player spawning twice (this can only happen on 3.x with a custom malicious client)
|
||||||
}
|
}
|
||||||
$this->spawned = true;
|
$this->spawned = true;
|
||||||
|
$this->setImmobile(false);
|
||||||
|
|
||||||
if($this->hasPermission(Server::BROADCAST_CHANNEL_USERS)){
|
if($this->hasPermission(Server::BROADCAST_CHANNEL_USERS)){
|
||||||
PermissionManager::getInstance()->subscribeToPermission(Server::BROADCAST_CHANNEL_USERS, $this);
|
PermissionManager::getInstance()->subscribeToPermission(Server::BROADCAST_CHANNEL_USERS, $this);
|
||||||
@ -1083,7 +1084,6 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
|
|||||||
$this->server->broadcastMessage($ev->getJoinMessage());
|
$this->server->broadcastMessage($ev->getJoinMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->setImmobile(false);
|
|
||||||
$this->noDamageTicks = 60;
|
$this->noDamageTicks = 60;
|
||||||
|
|
||||||
foreach($this->usedChunks as $index => $c){
|
foreach($this->usedChunks as $index => $c){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user