mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 02:42:58 +00:00
Rename TranslationContainer -> Translatable
This commit is contained in:
@ -23,7 +23,7 @@ declare(strict_types=1);
|
||||
|
||||
namespace pocketmine\event\player;
|
||||
|
||||
use pocketmine\lang\TranslationContainer;
|
||||
use pocketmine\lang\Translatable;
|
||||
use pocketmine\player\Player;
|
||||
|
||||
/**
|
||||
@ -34,19 +34,19 @@ use pocketmine\player\Player;
|
||||
* @see PlayerLoginEvent
|
||||
*/
|
||||
class PlayerJoinEvent extends PlayerEvent{
|
||||
/** @var string|TranslationContainer */
|
||||
/** @var string|Translatable */
|
||||
protected $joinMessage;
|
||||
|
||||
public function __construct(Player $player, TranslationContainer|string $joinMessage){
|
||||
public function __construct(Player $player, Translatable|string $joinMessage){
|
||||
$this->player = $player;
|
||||
$this->joinMessage = $joinMessage;
|
||||
}
|
||||
|
||||
public function setJoinMessage(TranslationContainer|string $joinMessage) : void{
|
||||
public function setJoinMessage(Translatable|string $joinMessage) : void{
|
||||
$this->joinMessage = $joinMessage;
|
||||
}
|
||||
|
||||
public function getJoinMessage() : TranslationContainer|string{
|
||||
public function getJoinMessage() : Translatable|string{
|
||||
return $this->joinMessage;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user