mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-04 00:55:14 +00:00
Replaced hardcoded record.nowPlaying with KnownTranslationKeys
This commit is contained in:
@ -2586,6 +2586,12 @@ final class KnownTranslationFactory{
|
||||
return new Translatable(KnownTranslationKeys::QUERY_WARNING2, []);
|
||||
}
|
||||
|
||||
public static function record_nowPlaying(Translatable|string $param0) : Translatable{
|
||||
return new Translatable(KnownTranslationKeys::RECORD_NOWPLAYING, [
|
||||
0 => $param0,
|
||||
]);
|
||||
}
|
||||
|
||||
public static function server_port() : Translatable{
|
||||
return new Translatable(KnownTranslationKeys::SERVER_PORT, []);
|
||||
}
|
||||
|
@ -549,6 +549,7 @@ final class KnownTranslationKeys{
|
||||
public const QUERY_DISABLE = "query_disable";
|
||||
public const QUERY_WARNING1 = "query_warning1";
|
||||
public const QUERY_WARNING2 = "query_warning2";
|
||||
public const RECORD_NOWPLAYING = "record.nowPlaying";
|
||||
public const SERVER_PORT = "server_port";
|
||||
public const SERVER_PORT_V4 = "server_port_v4";
|
||||
public const SERVER_PORT_V6 = "server_port_v6";
|
||||
|
Reference in New Issue
Block a user