diff --git a/src/main/java/world/bentobox/bentobox/api/commands/admin/team/AdminTeamKickCommand.java b/src/main/java/world/bentobox/bentobox/api/commands/admin/team/AdminTeamKickCommand.java index a0ceba41e..5990c68c5 100644 --- a/src/main/java/world/bentobox/bentobox/api/commands/admin/team/AdminTeamKickCommand.java +++ b/src/main/java/world/bentobox/bentobox/api/commands/admin/team/AdminTeamKickCommand.java @@ -41,7 +41,7 @@ public class AdminTeamKickCommand extends CompositeCommand { return false; } if (!getIslands().inTeam(getWorld(), targetUUID)) { - user.sendMessage("general.errors.not-in-team"); + user.sendMessage("commands.admin.team.kick.not-in-team"); return false; } diff --git a/src/main/resources/locales/en-US.yml b/src/main/resources/locales/en-US.yml index 297bd70e9..cfd228ea7 100644 --- a/src/main/resources/locales/en-US.yml +++ b/src/main/resources/locales/en-US.yml @@ -74,6 +74,7 @@ commands: parameters: "" description: "kick a player from a team" cannot-kick-owner: "&cYou cannot kick the owner. Kick members first." + not-in-team: "&cThis player is not in a team." admin-kicked: "&cThe admin kicked you from the team." setowner: parameters: "" diff --git a/src/test/java/world/bentobox/bentobox/api/commands/admin/team/AdminTeamKickCommandTest.java b/src/test/java/world/bentobox/bentobox/api/commands/admin/team/AdminTeamKickCommandTest.java index ad60482c8..3ac702eab 100644 --- a/src/test/java/world/bentobox/bentobox/api/commands/admin/team/AdminTeamKickCommandTest.java +++ b/src/test/java/world/bentobox/bentobox/api/commands/admin/team/AdminTeamKickCommandTest.java @@ -157,7 +157,7 @@ public class AdminTeamKickCommandTest { when(pm.getUUID(Mockito.any())).thenReturn(notUUID); when(im.getMembers(Mockito.any(), Mockito.any())).thenReturn(new HashSet<>()); assertFalse(itl.canExecute(user, itl.getLabel(), Arrays.asList(name))); - Mockito.verify(user).sendMessage(Mockito.eq("general.errors.not-in-team")); + Mockito.verify(user).sendMessage(Mockito.eq("commands.admin.team.kick.not-in-team")); } /**