mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2024-06-28 08:50:57 +00:00
Update Commanddeljail.java (#2002) @montlikadani
When the user entered a word to delete the jail, deleted it, but removed anything because no jail existed.
This commit is contained in:
parent
030eb3375b
commit
2ff29dab80
|
@ -19,6 +19,10 @@ public class Commanddeljail extends EssentialsCommand {
|
||||||
throw new NotEnoughArgumentsException();
|
throw new NotEnoughArgumentsException();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ess.getJails().getJail(args[0]) == null) {
|
||||||
|
throw new Exception(tl("jailNotExist"));
|
||||||
|
}
|
||||||
|
|
||||||
ess.getJails().removeJail(args[0]);
|
ess.getJails().removeJail(args[0]);
|
||||||
sender.sendMessage(tl("deleteJail", args[0]));
|
sender.sendMessage(tl("deleteJail", args[0]));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue