mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-12-26 19:17:40 +01:00
parent
73417fd990
commit
7da7dd4884
@ -41,7 +41,7 @@ public class AdminTeamKickCommand extends CompositeCommand {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (!getIslands().inTeam(getWorld(), targetUUID)) {
|
if (!getIslands().inTeam(getWorld(), targetUUID)) {
|
||||||
user.sendMessage("general.errors.not-in-team");
|
user.sendMessage("commands.admin.team.kick.not-in-team");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -74,6 +74,7 @@ commands:
|
|||||||
parameters: "<team player>"
|
parameters: "<team player>"
|
||||||
description: "kick a player from a team"
|
description: "kick a player from a team"
|
||||||
cannot-kick-owner: "&cYou cannot kick the owner. Kick members first."
|
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."
|
admin-kicked: "&cThe admin kicked you from the team."
|
||||||
setowner:
|
setowner:
|
||||||
parameters: "<player>"
|
parameters: "<player>"
|
||||||
|
@ -157,7 +157,7 @@ public class AdminTeamKickCommandTest {
|
|||||||
when(pm.getUUID(Mockito.any())).thenReturn(notUUID);
|
when(pm.getUUID(Mockito.any())).thenReturn(notUUID);
|
||||||
when(im.getMembers(Mockito.any(), Mockito.any())).thenReturn(new HashSet<>());
|
when(im.getMembers(Mockito.any(), Mockito.any())).thenReturn(new HashSet<>());
|
||||||
assertFalse(itl.canExecute(user, itl.getLabel(), Arrays.asList(name)));
|
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