PluginBase: Improved error messages for commands containing illegal characters

This commit is contained in:
Dylan K. Taylor
2021-11-12 00:16:53 +00:00
parent 3276047497
commit e4754ab029
4 changed files with 14 additions and 12 deletions

View File

@ -1666,10 +1666,11 @@ final class KnownTranslationFactory{
]);
}
public static function pocketmine_plugin_aliasError(Translatable|string $param0, Translatable|string $param1) : Translatable{
public static function pocketmine_plugin_aliasError(Translatable|string $param0, Translatable|string $param1, Translatable|string $param2) : Translatable{
return new Translatable(KnownTranslationKeys::POCKETMINE_PLUGIN_ALIASERROR, [
0 => $param0,
1 => $param1,
2 => $param2,
]);
}
@ -1689,10 +1690,11 @@ final class KnownTranslationFactory{
return new Translatable(KnownTranslationKeys::POCKETMINE_PLUGIN_CIRCULARDEPENDENCY, []);
}
public static function pocketmine_plugin_commandError(Translatable|string $param0, Translatable|string $param1) : Translatable{
public static function pocketmine_plugin_commandError(Translatable|string $param0, Translatable|string $param1, Translatable|string $param2) : Translatable{
return new Translatable(KnownTranslationKeys::POCKETMINE_PLUGIN_COMMANDERROR, [
0 => $param0,
1 => $param1,
2 => $param2,
]);
}