1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-11-29 14:05:25 +01:00

update all locale files

This commit is contained in:
Zrips 2016-03-13 16:35:23 +02:00
parent 3f4f113891
commit 2f8e12c829
6 changed files with 17 additions and 8 deletions

View File

@ -1274,7 +1274,6 @@ public class JobsConfiguration {
langFile.saveDefaultConfig(); langFile.saveDefaultConfig();
} }
languages.clear();
languages.add("en"); languages.add("en");
File customLocaleFile = new File(plugin.getDataFolder(), "locale" + File.separator + "messages_" + localeString + ".yml"); File customLocaleFile = new File(plugin.getDataFolder(), "locale" + File.separator + "messages_" + localeString + ".yml");

View File

@ -25,3 +25,4 @@
/ExploreRegion.class /ExploreRegion.class
/ExploreChunk.class /ExploreChunk.class
/ExploreWorld.class /ExploreWorld.class
/ExploreRespond.class

View File

@ -513,6 +513,7 @@ public class JobsPlayer {
} }
honorific = builder.toString().trim(); honorific = builder.toString().trim();
if (honorific.length() > 0)
honorific = ConfigManager.getJobsConfiguration().getModifyChatPrefix() + honorific + ConfigManager.getJobsConfiguration().getModifyChatSuffix(); honorific = ConfigManager.getJobsConfiguration().getModifyChatPrefix() + honorific + ConfigManager.getJobsConfiguration().getModifyChatSuffix();
} }

View File

@ -445,6 +445,9 @@ public abstract class JobsDAO {
while (res.next()) { while (res.next()) {
if (res.getString("username") == null)
continue;
TopList top = new TopList(res.getString("username"), res.getInt("totallvl"), 0, UUID.fromString(res.getString("player_uuid"))); TopList top = new TopList(res.getString("username"), res.getInt("totallvl"), 0, UUID.fromString(res.getString("player_uuid")));
names.add(top); names.add(top);
@ -840,8 +843,12 @@ public abstract class JobsDAO {
+ "jobs` WHERE `job` LIKE ? ORDER BY `level` DESC, LOWER(username) ASC LIMIT " + limit + ", 15;"); + "jobs` WHERE `job` LIKE ? ORDER BY `level` DESC, LOWER(username) ASC LIMIT " + limit + ", 15;");
prest.setString(1, jobsname); prest.setString(1, jobsname);
ResultSet res = prest.executeQuery(); ResultSet res = prest.executeQuery();
Debug.D("her2e");
while (res.next()) { while (res.next()) {
Debug.D("here");
String name = res.getString(1); String name = res.getString(1);
if (name == null) if (name == null)

View File

@ -1,2 +1,3 @@
/v1_8.class /v1_8.class
/v1_7.class /v1_7.class
/v1_9.class

View File

@ -1,7 +1,7 @@
name: Jobs name: Jobs
description: Jobs Plugin for the BukkitAPI description: Jobs Plugin for the BukkitAPI
main: com.gamingmesh.jobs.JobsPlugin main: com.gamingmesh.jobs.JobsPlugin
version: 2.63.1 version: 2.63.3
author: phrstbrn author: phrstbrn
softdepend: [Vault, CoreProtect, MythicMobs, McMMO] softdepend: [Vault, CoreProtect, MythicMobs, McMMO]
commands: commands: