29.08.2014, 15:02
(
Последний раз редактировалось 123marvin123; 29.08.2014 в 15:49.
)
Yes, you can do it like this, but you could make a Map, and then assign all the values to it.
Then you can do like:
Then you can do like:
PHP код:
if(hashMap.get(cmd) > player.getAdminLevel()) {
return false;
}
return true;
//Or just
return player.getAdminLevel() >= hashMap.get(cmd);