1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-12-01 15:03:36 +01:00

No need to double check job if null

This commit is contained in:
montlikadani 2019-07-21 17:57:16 +02:00
parent 45d580342e
commit bc97d2aaf6

View File

@ -48,14 +48,9 @@ public class top implements Cmd {
if (page < 1) if (page < 1)
page = 1; page = 1;
if (Jobs.getJob(args[0]) == null) {
player.sendMessage(Jobs.getLanguage().getMessage("command.top.error.nojob"));
return false;
}
Job job = Jobs.getJob(args[0]); Job job = Jobs.getJob(args[0]);
if (job == null) { if (job == null) {
player.sendMessage(Jobs.getLanguage().getMessage("command.top.error.nojob"));
return false; return false;
} }