mirror of
https://github.com/Zrips/Jobs.git
synced 2024-11-29 05:55:27 +01:00
No need to double check job if null
This commit is contained in:
parent
45d580342e
commit
bc97d2aaf6
@ -48,14 +48,9 @@ public class top implements Cmd {
|
||||
if (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]);
|
||||
|
||||
if (job == null) {
|
||||
player.sendMessage(Jobs.getLanguage().getMessage("command.top.error.nojob"));
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user