mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-10 21:45:35 +00:00
Fixed some formatting issues in Player
This commit is contained in:
parent
6686bd4442
commit
d4bb078566
@ -2428,7 +2428,8 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
|
|||||||
case InteractPacket::ACTION_MOUSEOVER:
|
case InteractPacket::ACTION_MOUSEOVER:
|
||||||
break; //TODO: handle these
|
break; //TODO: handle these
|
||||||
default:
|
default:
|
||||||
$this->server->getLogger()->debug("Unhandled/unknown interaction type " . $packet->action . "received from ". $this->getName());
|
$this->server->getLogger()->debug("Unhandled/unknown interaction type " . $packet->action . "received from " . $this->getName());
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3495,7 +3496,7 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
|
|||||||
* @param string $subtitle
|
* @param string $subtitle
|
||||||
*/
|
*/
|
||||||
public function addSubTitle(string $subtitle){
|
public function addSubTitle(string $subtitle){
|
||||||
$this->sendTitleText($subtitle, SetTitlePacket::TYPE_SET_SUBTITLE);
|
$this->sendTitleText($subtitle, SetTitlePacket::TYPE_SET_SUBTITLE);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -3520,9 +3521,9 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
|
|||||||
* Resets the title duration settings.
|
* Resets the title duration settings.
|
||||||
*/
|
*/
|
||||||
public function resetTitles(){
|
public function resetTitles(){
|
||||||
$pk = new SetTitlePacket();
|
$pk = new SetTitlePacket();
|
||||||
$pk->type = SetTitlePacket::TYPE_RESET_TITLE;
|
$pk->type = SetTitlePacket::TYPE_RESET_TITLE;
|
||||||
$this->dataPacket($pk);
|
$this->dataPacket($pk);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user