mirror of
https://github.com/Zrips/Jobs.git
synced 2025-01-03 14:58:34 +01:00
We dont need to check database for total players every time
This commit is contained in:
parent
851d4600e1
commit
18112d6129
@ -147,7 +147,7 @@ public class Job {
|
|||||||
if (!Jobs.getGCManager().useDynamicPayment)
|
if (!Jobs.getGCManager().useDynamicPayment)
|
||||||
return;
|
return;
|
||||||
Parser eq = Jobs.getGCManager().DynamicPaymentEquation;
|
Parser eq = Jobs.getGCManager().DynamicPaymentEquation;
|
||||||
eq.setVariable("totalworkers", Jobs.getJobsDAO().getTotalPlayers());
|
eq.setVariable("totalworkers", this.totalPlayers);
|
||||||
eq.setVariable("totaljobs", Jobs.getJobs().size());
|
eq.setVariable("totaljobs", Jobs.getJobs().size());
|
||||||
eq.setVariable("jobstotalplayers", getTotalPlayers());
|
eq.setVariable("jobstotalplayers", getTotalPlayers());
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
name: Jobs
|
name: Jobs
|
||||||
description: Jobs Plugin for the BukkitAPI
|
description: Jobs Plugin for the BukkitAPI
|
||||||
main: com.gamingmesh.jobs.Jobs
|
main: com.gamingmesh.jobs.Jobs
|
||||||
version: 3.7.1
|
version: 3.7.2
|
||||||
author: phrstbrn
|
author: phrstbrn
|
||||||
softdepend: [Vault, iConomy, MythicMobs, McMMO]
|
softdepend: [Vault, iConomy, MythicMobs, McMMO]
|
||||||
commands:
|
commands:
|
||||||
|
Loading…
Reference in New Issue
Block a user