From 18112d6129957cddd658f730a26baa9d0151997c Mon Sep 17 00:00:00 2001 From: Zrips Date: Sat, 10 Dec 2016 15:02:16 +0200 Subject: [PATCH] We dont need to check database for total players every time --- com/gamingmesh/jobs/container/Job.java | 2 +- plugin.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/com/gamingmesh/jobs/container/Job.java b/com/gamingmesh/jobs/container/Job.java index da7d7919..765dc5db 100644 --- a/com/gamingmesh/jobs/container/Job.java +++ b/com/gamingmesh/jobs/container/Job.java @@ -147,7 +147,7 @@ public class Job { if (!Jobs.getGCManager().useDynamicPayment) return; Parser eq = Jobs.getGCManager().DynamicPaymentEquation; - eq.setVariable("totalworkers", Jobs.getJobsDAO().getTotalPlayers()); + eq.setVariable("totalworkers", this.totalPlayers); eq.setVariable("totaljobs", Jobs.getJobs().size()); eq.setVariable("jobstotalplayers", getTotalPlayers()); diff --git a/plugin.yml b/plugin.yml index c2364b6e..b34c202c 100644 --- a/plugin.yml +++ b/plugin.yml @@ -1,7 +1,7 @@ name: Jobs description: Jobs Plugin for the BukkitAPI main: com.gamingmesh.jobs.Jobs -version: 3.7.1 +version: 3.7.2 author: phrstbrn softdepend: [Vault, iConomy, MythicMobs, McMMO] commands: