From 2c98c405196f00ba5169e410ebc86e5ec5bd26a7 Mon Sep 17 00:00:00 2001 From: Zrips Date: Sat, 13 May 2017 16:37:06 +0300 Subject: [PATCH] Need to include new locale --- pom.xml | 13 ++++++++----- .../com/gamingmesh/jobs/config/LanguageManager.java | 1 + src/main/java/com/gamingmesh/jobs/dao/JobsDAO.java | 1 - .../java/com/gamingmesh/jobs/stuff/ActionBar.java | 2 +- src/main/resources/plugin.yml | 2 +- 5 files changed, 11 insertions(+), 8 deletions(-) diff --git a/pom.xml b/pom.xml index 6e78c298..15b963f2 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ 4.0.0 Jobs jobs - 3.8.2 + 3.9.0 Jobs http://maven.apache.org @@ -88,10 +88,10 @@ vault-repo http://nexus.hc.to/content/repositories/pub_releases/ - - mcmmo-repo - http://repo.mcmmo.org/ - + + mcmmo-repo + http://repo.mcmmo.org/ + @@ -118,6 +118,9 @@ org.apache.maven.plugins maven-jar-plugin 2.3.1 + + C:\Users\Arte\Desktop\Server\plugins + diff --git a/src/main/java/com/gamingmesh/jobs/config/LanguageManager.java b/src/main/java/com/gamingmesh/jobs/config/LanguageManager.java index 3135589e..8cfe1acc 100644 --- a/src/main/java/com/gamingmesh/jobs/config/LanguageManager.java +++ b/src/main/java/com/gamingmesh/jobs/config/LanguageManager.java @@ -40,6 +40,7 @@ public class LanguageManager { languages.add("lt"); languages.add("ru"); languages.add("tr"); + languages.add("zhcn"); for (String lang : languages) { YmlMaker langFile = new YmlMaker(plugin, "locale" + File.separator + "messages_" + lang + ".yml"); diff --git a/src/main/java/com/gamingmesh/jobs/dao/JobsDAO.java b/src/main/java/com/gamingmesh/jobs/dao/JobsDAO.java index 72e29929..3451b21a 100644 --- a/src/main/java/com/gamingmesh/jobs/dao/JobsDAO.java +++ b/src/main/java/com/gamingmesh/jobs/dao/JobsDAO.java @@ -924,7 +924,6 @@ public abstract class JobsDAO { * @param jobInfo - the information getting saved */ public void save(JobsPlayer player) { - Debug.D("saving player data " + player.getUserName()); JobsConnection conn = getConnection(); if (conn == null) return; diff --git a/src/main/java/com/gamingmesh/jobs/stuff/ActionBar.java b/src/main/java/com/gamingmesh/jobs/stuff/ActionBar.java index ec167a4f..f5856e31 100644 --- a/src/main/java/com/gamingmesh/jobs/stuff/ActionBar.java +++ b/src/main/java/com/gamingmesh/jobs/stuff/ActionBar.java @@ -122,7 +122,7 @@ public class ActionBar { } } - private String convertAmount(double amount) { + private static String convertAmount(double amount) { String format = "%.2f"; if (amount % 1 == 0 || amount > 100 || amount < -100) { amount = (int) Math.round(amount); diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 190e9cb2..f5291f53 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,7 +1,7 @@ name: Jobs description: Jobs Plugin for the BukkitAPI main: com.gamingmesh.jobs.Jobs -version: 3.8.2 +version: 3.9.0 author: phrstbrn softdepend: [Vault, iConomy, MythicMobs, McMMO] commands: