From 276d8f8e1ec8d14d0f5b6e703e5c203c9eb655c4 Mon Sep 17 00:00:00 2001 From: Bernhard Date: Sun, 24 Jul 2022 10:32:29 +0200 Subject: [PATCH] change message of `/p remove ` if player does not need to be removed (#3734) refactor: change message of `/p remove ` if unnecessary --- Core/src/main/java/com/plotsquared/core/command/Remove.java | 4 ++-- Core/src/main/resources/lang/messages_en.json | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Core/src/main/java/com/plotsquared/core/command/Remove.java b/Core/src/main/java/com/plotsquared/core/command/Remove.java index 492a01085..3a2e06a2d 100644 --- a/Core/src/main/java/com/plotsquared/core/command/Remove.java +++ b/Core/src/main/java/com/plotsquared/core/command/Remove.java @@ -115,8 +115,8 @@ public class Remove extends SubCommand { } if (count == 0) { player.sendMessage( - TranslatableCaption.of("errors.invalid_player"), - Template.of("value", args[0]) + TranslatableCaption.of("member.player_not_removed"), + Template.of("player", args[0]) ); } else { player.sendMessage( diff --git a/Core/src/main/resources/lang/messages_en.json b/Core/src/main/resources/lang/messages_en.json index 85c829d8c..397bb0933 100644 --- a/Core/src/main/resources/lang/messages_en.json +++ b/Core/src/main/resources/lang/messages_en.json @@ -414,6 +414,7 @@ "kick.you_got_kicked": "You got kicked from the plot!", "trusted.trusted_added": "You successfully trusted a user to the plot.", "trusted.plot_removed_user": "Plot of which you were added to has been deleted due to owner inactivity.", + "member.player_not_removed": " is neither added, trusted or denied on the plot, thus doesn't need to be removed.", "member.removed_players": "Removed player(s) from this plot.", "member.plot_left": " left the plot.", "member.plot_cant_leave_owner": "You are the plot owner. You cannot leave this plot.",