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:
parent
45d580342e
commit
bc97d2aaf6
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user