Tell the sender the player's name they sent back if already jailed.
This commit is contained in:
parent
e34c1d0990
commit
05695ce969
@ -70,12 +70,12 @@ public class JailCommand implements Command {
|
|||||||
sender.sendMessage(jm.getPlugin().getJailIO().getLanguageString(LangString.PROVIDEAPLAYER, LangString.JAILING));
|
sender.sendMessage(jm.getPlugin().getJailIO().getLanguageString(LangString.PROVIDEAPLAYER, LangString.JAILING));
|
||||||
return true;
|
return true;
|
||||||
}else {
|
}else {
|
||||||
jm.getPlugin().debug("We are getting ready to handle jailing: " + params.jail());
|
jm.getPlugin().debug("We are getting ready to handle jailing: " + params.player());
|
||||||
}
|
}
|
||||||
|
|
||||||
//Check if the given player is already jailed or not
|
//Check if the given player is already jailed or not
|
||||||
if(jm.isPlayerJailed(params.player())) {
|
if(jm.isPlayerJailed(params.player())) {
|
||||||
sender.sendMessage(jm.getPlugin().getJailIO().getLanguageString(LangString.ALREADYJAILED));
|
sender.sendMessage(jm.getPlugin().getJailIO().getLanguageString(LangString.ALREADYJAILED, params.player()));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ language:
|
|||||||
unknowncommand: '&cNo commands registered by the name of %0%.'
|
unknowncommand: '&cNo commands registered by the name of %0%.'
|
||||||
jailing:
|
jailing:
|
||||||
afkkickmessage: '&cYou can not be afk while being jailed.'
|
afkkickmessage: '&cYou can not be afk while being jailed.'
|
||||||
alreadyjailed: '&cThat player is already jailed.'
|
alreadyjailed: '&c%0% is already jailed.'
|
||||||
broadcastmessageforever: '&9%0% has been jailed forever.'
|
broadcastmessageforever: '&9%0% has been jailed forever.'
|
||||||
broadcastmessageforminutes: '&9%0% has been jailed for %1% minutes.'
|
broadcastmessageforminutes: '&9%0% has been jailed for %1% minutes.'
|
||||||
broadcastunjailing: '&9%0% has been unjailed by %1%.'
|
broadcastunjailing: '&9%0% has been unjailed by %1%.'
|
||||||
|
Loading…
Reference in New Issue
Block a user