How exactly would you run events on a player with a certian amount of money?? Like if a player has 5000 they get a particle trail onMove.
And how do we know which plugin is the money provided from? Suppose the function is getAmount(), why can't you simply use if(getAmount() >= 5000) ?
Sorry for not providing that information PHP: $pm = $server->getPluginManager();if(!($money = $pm->getPlugin("PocketMoney"))&& !($money = $pm->getPlugin("GoldStd"))&& !($money = $pm->getPlugin("EconomyAPI"))&& !($money = $pm->getPlugin("MassiveEconomy"))){return null;}return $money;
PHP: a() and b() If a() resolves to false, b() wouldn't be executed at all. PHP: !a() and !b() If a() resolves to true, b() wouldn't be executed at all. There is no difference between using || and && in this situation. Just that he likes handling exceptional cases first.