1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-12-31 21:37:57 +01:00

We dont need to check database for total players every time

This commit is contained in:
Zrips 2016-12-10 15:02:16 +02:00
parent 851d4600e1
commit 18112d6129
2 changed files with 2 additions and 2 deletions

View File

@ -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());

View File

@ -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: