mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-09 05:08:36 +00:00
Player: removed useless addActionBarMessage()
this is exactly the same as sendTip().
This commit is contained in:
parent
e5756dbf0b
commit
7d22b2a6d7
@ -2352,15 +2352,6 @@ class Player extends Human implements CommandSender, ChunkLoader, ChunkListener,
|
|||||||
$this->sendTitleText($subtitle, SetTitlePacket::TYPE_SET_SUBTITLE);
|
$this->sendTitleText($subtitle, SetTitlePacket::TYPE_SET_SUBTITLE);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Adds small text to the user's screen.
|
|
||||||
*
|
|
||||||
* @param string $message
|
|
||||||
*/
|
|
||||||
public function addActionBarMessage(string $message){
|
|
||||||
$this->sendTitleText($message, SetTitlePacket::TYPE_SET_ACTIONBAR_MESSAGE);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Removes the title from the client's screen.
|
* Removes the title from the client's screen.
|
||||||
*/
|
*/
|
||||||
|
@ -82,7 +82,7 @@ class TitleCommand extends VanillaCommand{
|
|||||||
throw new InvalidCommandSyntaxException();
|
throw new InvalidCommandSyntaxException();
|
||||||
}
|
}
|
||||||
|
|
||||||
$player->addActionBarMessage(implode(" ", array_slice($args, 2)));
|
$player->sendTip(implode(" ", array_slice($args, 2)));
|
||||||
break;
|
break;
|
||||||
case "times":
|
case "times":
|
||||||
if(count($args) < 5){
|
if(count($args) < 5){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user