Disable commands while in jail. (#474)

Prevents possible escape while in jail. (May have to also update other cash items to also prevent possible escape.)
This commit is contained in:
UltimateMors
2019-06-05 11:37:26 -04:00
committed by Ronan Lana
parent edb3920852
commit 04b11e2518

View File

@@ -93,6 +93,10 @@ public class CommandsExecutor {
}
private void handleInternal(MapleClient client, String message){
if (client.getPlayer().getMapId() == 300000012) {
client.getPlayer().yellowMessage("You not have permission to use this command while in jail.");
return;
}
final String splitRegex = "[ ]";
String[] splitedMessage = message.substring(1).split(splitRegex, 2);
if (splitedMessage.length < 2) {