Rename addTitle/addSubTitle/addActionBarMessage prefixes to "send", deprecated old variants

closes #2896

these deprecated methods will be removed in 4.0.
This commit is contained in:
=?UTF-8?q?Fabian=20Fa=C3=9Fbender?=
2019-05-01 18:52:03 +01:00
committed by Dylan K. Taylor
parent d850a84d0d
commit 932c489de1
3 changed files with 42 additions and 8 deletions

View File

@@ -68,21 +68,21 @@ class TitleCommand extends VanillaCommand{
throw new InvalidCommandSyntaxException();
}
$player->addTitle(implode(" ", array_slice($args, 2)));
$player->sendTitle(implode(" ", array_slice($args, 2)));
break;
case "subtitle":
if(count($args) < 3){
throw new InvalidCommandSyntaxException();
}
$player->addSubTitle(implode(" ", array_slice($args, 2)));
$player->sendSubTitle(implode(" ", array_slice($args, 2)));
break;
case "actionbar":
if(count($args) < 3){
throw new InvalidCommandSyntaxException();
}
$player->addActionBarMessage(implode(" ", array_slice($args, 2)));
$player->sendActionBarMessage(implode(" ", array_slice($args, 2)));
break;
case "times":
if(count($args) < 5){