From 1ec90d2cd18dd3f12d1affd0967089f6915c2a78 Mon Sep 17 00:00:00 2001 From: ipad54 <63200545+ipad54@users.noreply.github.com> Date: Sat, 17 Aug 2024 14:36:46 +0300 Subject: [PATCH 1/5] Added translations for /xp command --- eng.ini | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/eng.ini b/eng.ini index a80473378..95650f0f1 100644 --- a/eng.ini +++ b/eng.ini @@ -51,6 +51,11 @@ commands.enchant.noItem=The target does not hold an item commands.enchant.notFound=There is no such enchantment with ID {%0} commands.enchant.success=Enchanting succeeded for {%0} commands.enchant.usage=/enchant [level] +commands.xp.failure.widthdrawXp=Cannot give player negative experience points +commands.experience.success=Gave {%0} experience to {%1} +commands.experience.success.levels=Gave {%0} experience levels to {%1} +commands.experience.success.negative.levels=Taken {%0} levels from {%1} +commands.experience.usage=/xp [player] commands.gamemode.success.other=Set {%1}'s game mode to {%0} commands.gamemode.success.self=Set own game mode to {%0} commands.gamemode.usage=/gamemode [player] @@ -256,6 +261,7 @@ pocketmine.command.difficulty.description=Sets the game difficulty pocketmine.command.dumpmemory.description=Dumps diagnostic information about memory usage to disk pocketmine.command.effect.description=Adds/Removes effects on players pocketmine.command.enchant.description=Adds enchantments on items +pocketmine.command.experience.description=Adds or removes player experience pocketmine.command.error.permission=You don't have permission to use the command: {%commandName} pocketmine.command.error.playerNotFound=Cannot find a player matching "{%playerName}" pocketmine.command.exception=Unhandled exception executing command '{%0}' in {%1}: {%2} @@ -396,6 +402,8 @@ pocketmine.permission.command.effect.other=Allows the user to modify effects of pocketmine.permission.command.effect.self=Allows the user to modify their own effects pocketmine.permission.command.enchant.other=Allows the user to enchant the held items of other players pocketmine.permission.command.enchant.self=Allows the user to enchant their own held item +pocketmine.permission.command.experience.other=Allows the user to add or remove experience of other players +pocketmine.permission.command.experince.self=Allows the user to add or remove their experience pocketmine.permission.command.gamemode.other=Allows the user to change the game mode of other players pocketmine.permission.command.gamemode.self=Allows the user to change their own game mode pocketmine.permission.command.gc=Allows the user to fire garbage collection tasks From 2ed25fcf0a1ff4a4a86f70da71f480ab43601bdb Mon Sep 17 00:00:00 2001 From: ipad54 <63200545+ipad54@users.noreply.github.com> Date: Sat, 17 Aug 2024 14:39:07 +0300 Subject: [PATCH 2/5] Oops --- eng.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng.ini b/eng.ini index 95650f0f1..f67d20eae 100644 --- a/eng.ini +++ b/eng.ini @@ -51,7 +51,7 @@ commands.enchant.noItem=The target does not hold an item commands.enchant.notFound=There is no such enchantment with ID {%0} commands.enchant.success=Enchanting succeeded for {%0} commands.enchant.usage=/enchant [level] -commands.xp.failure.widthdrawXp=Cannot give player negative experience points +commands.experience.failure.widthdrawXp=Cannot give player negative experience points commands.experience.success=Gave {%0} experience to {%1} commands.experience.success.levels=Gave {%0} experience levels to {%1} commands.experience.success.negative.levels=Taken {%0} levels from {%1} From c32a1351c6319b8625b7fb450166664254df70bb Mon Sep 17 00:00:00 2001 From: ipad54 <63200545+ipad54@users.noreply.github.com> Date: Sat, 17 Aug 2024 18:58:54 +0300 Subject: [PATCH 3/5] Rename experience to xp for consistency with vanilla translations --- eng.ini | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/eng.ini b/eng.ini index f67d20eae..8a08611cb 100644 --- a/eng.ini +++ b/eng.ini @@ -51,11 +51,6 @@ commands.enchant.noItem=The target does not hold an item commands.enchant.notFound=There is no such enchantment with ID {%0} commands.enchant.success=Enchanting succeeded for {%0} commands.enchant.usage=/enchant [level] -commands.experience.failure.widthdrawXp=Cannot give player negative experience points -commands.experience.success=Gave {%0} experience to {%1} -commands.experience.success.levels=Gave {%0} experience levels to {%1} -commands.experience.success.negative.levels=Taken {%0} levels from {%1} -commands.experience.usage=/xp [player] commands.gamemode.success.other=Set {%1}'s game mode to {%0} commands.gamemode.success.self=Set own game mode to {%0} commands.gamemode.usage=/gamemode [player] @@ -118,6 +113,11 @@ commands.whitelist.reloaded=Reloaded the whitelist commands.whitelist.remove.success=Removed {%0} from the whitelist commands.whitelist.remove.usage=/whitelist remove commands.whitelist.usage=/whitelist +commands.xp.failure.widthdrawXp=Cannot give player negative experience points +commands.xp.success=Gave {%0} experience to {%1} +commands.xp.success.levels=Gave {%0} experience levels to {%1} +commands.xp.success.negative.levels=Taken {%0} levels from {%1} +commands.xp.usage=/xp [player] death.attack.anvil={%0} was squashed by a falling anvil death.attack.arrow.item={%0} was shot by {%1} using {%2} death.attack.arrow={%0} was shot by {%1} @@ -261,7 +261,6 @@ pocketmine.command.difficulty.description=Sets the game difficulty pocketmine.command.dumpmemory.description=Dumps diagnostic information about memory usage to disk pocketmine.command.effect.description=Adds/Removes effects on players pocketmine.command.enchant.description=Adds enchantments on items -pocketmine.command.experience.description=Adds or removes player experience pocketmine.command.error.permission=You don't have permission to use the command: {%commandName} pocketmine.command.error.playerNotFound=Cannot find a player matching "{%playerName}" pocketmine.command.exception=Unhandled exception executing command '{%0}' in {%1}: {%2} @@ -335,6 +334,7 @@ pocketmine.command.version.serverSoftwareName=This server is running {%serverSof pocketmine.command.version.serverSoftwareVersion=Server version: {%serverSoftwareVersion} (git hash: {%serverGitHash}) pocketmine.command.version.usage=/version [plugin name] pocketmine.command.whitelist.description=Manages the list of players allowed to use this server +pocketmine.command.xp.description=Adds or removes player experience pocketmine.crash.archive=The crash dump has been automatically submitted to the Crash Archive. You can view it on {%0} or use the ID #{%1}. pocketmine.crash.create=An unrecoverable error has occurred and the server has crashed. Creating a crash dump pocketmine.crash.error=Could not create crash dump: {%0} @@ -402,8 +402,6 @@ pocketmine.permission.command.effect.other=Allows the user to modify effects of pocketmine.permission.command.effect.self=Allows the user to modify their own effects pocketmine.permission.command.enchant.other=Allows the user to enchant the held items of other players pocketmine.permission.command.enchant.self=Allows the user to enchant their own held item -pocketmine.permission.command.experience.other=Allows the user to add or remove experience of other players -pocketmine.permission.command.experince.self=Allows the user to add or remove their experience pocketmine.permission.command.gamemode.other=Allows the user to change the game mode of other players pocketmine.permission.command.gamemode.self=Allows the user to change their own game mode pocketmine.permission.command.gc=Allows the user to fire garbage collection tasks @@ -450,6 +448,8 @@ pocketmine.permission.command.whitelist.enable=Allows the user to enable the ser pocketmine.permission.command.whitelist.list=Allows the user to list all players on the server whitelist pocketmine.permission.command.whitelist.reload=Allows the user to reload the server whitelist pocketmine.permission.command.whitelist.remove=Allows the user to remove a player from the server whitelist +pocketmine.permission.command.xp.other=Allows the user to add or remove experience of other players +pocketmine.permission.command.xp.self=Allows the user to add or remove their experience pocketmine.permission.group.console=Grants all console permissions pocketmine.permission.group.operator=Grants all operator permissions pocketmine.permission.group.user=Grants all non-sensitive permissions that everyone gets by default From 03bc5f5dd432893e77342108efdea5371f556dcc Mon Sep 17 00:00:00 2001 From: ipad54 <63200545+ipad54@users.noreply.github.com> Date: Sat, 17 Aug 2024 19:03:38 +0300 Subject: [PATCH 4/5] Added optional [L] parameter to usage, move it to pocketmine translations --- eng.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng.ini b/eng.ini index 8a08611cb..9490ecfe8 100644 --- a/eng.ini +++ b/eng.ini @@ -117,7 +117,6 @@ commands.xp.failure.widthdrawXp=Cannot give player negative experience points commands.xp.success=Gave {%0} experience to {%1} commands.xp.success.levels=Gave {%0} experience levels to {%1} commands.xp.success.negative.levels=Taken {%0} levels from {%1} -commands.xp.usage=/xp [player] death.attack.anvil={%0} was squashed by a falling anvil death.attack.arrow.item={%0} was shot by {%1} using {%2} death.attack.arrow={%0} was shot by {%1} @@ -335,6 +334,7 @@ pocketmine.command.version.serverSoftwareVersion=Server version: {%serverSoftwar pocketmine.command.version.usage=/version [plugin name] pocketmine.command.whitelist.description=Manages the list of players allowed to use this server pocketmine.command.xp.description=Adds or removes player experience +pocketmine.commands.xp.usage=/xp [player] pocketmine.crash.archive=The crash dump has been automatically submitted to the Crash Archive. You can view it on {%0} or use the ID #{%1}. pocketmine.crash.create=An unrecoverable error has occurred and the server has crashed. Creating a crash dump pocketmine.crash.error=Could not create crash dump: {%0} From 87d2a919d47ccde7fa3c3b5b074a3aba6a46d772 Mon Sep 17 00:00:00 2001 From: ipad54 <63200545+ipad54@users.noreply.github.com> Date: Sat, 17 Aug 2024 19:09:06 +0300 Subject: [PATCH 5/5] ... --- eng.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng.ini b/eng.ini index 9490ecfe8..3a35f5f7a 100644 --- a/eng.ini +++ b/eng.ini @@ -334,7 +334,7 @@ pocketmine.command.version.serverSoftwareVersion=Server version: {%serverSoftwar pocketmine.command.version.usage=/version [plugin name] pocketmine.command.whitelist.description=Manages the list of players allowed to use this server pocketmine.command.xp.description=Adds or removes player experience -pocketmine.commands.xp.usage=/xp [player] +pocketmine.command.xp.usage=/xp [player] pocketmine.crash.archive=The crash dump has been automatically submitted to the Crash Archive. You can view it on {%0} or use the ID #{%1}. pocketmine.crash.create=An unrecoverable error has occurred and the server has crashed. Creating a crash dump pocketmine.crash.error=Could not create crash dump: {%0}