mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-12-25 18:48:15 +01:00
parent
73417fd990
commit
7da7dd4884
@ -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;
|
||||
}
|
||||
|
||||
|
@ -74,6 +74,7 @@ commands:
|
||||
parameters: "<team player>"
|
||||
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: "<player>"
|
||||
|
@ -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"));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user