From cd190eebc9b6b6cb0c7c4cd16ffdcb589f0b252c Mon Sep 17 00:00:00 2001 From: NuclearW Date: Wed, 6 Feb 2013 01:05:16 -0500 Subject: [PATCH] Locale Graph --- src/main/java/com/gmail/nossr50/mcMMO.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/main/java/com/gmail/nossr50/mcMMO.java b/src/main/java/com/gmail/nossr50/mcMMO.java index 1b6a5465b..d363eecf2 100644 --- a/src/main/java/com/gmail/nossr50/mcMMO.java +++ b/src/main/java/com/gmail/nossr50/mcMMO.java @@ -7,6 +7,7 @@ import java.io.InputStreamReader; import java.util.ArrayList; import java.util.HashMap; import java.util.List; +import java.util.Locale; import net.shatteredlands.shatt.backup.ZipLibrary; @@ -41,6 +42,7 @@ import com.gmail.nossr50.listeners.HardcoreListener; import com.gmail.nossr50.listeners.InventoryListener; import com.gmail.nossr50.listeners.PlayerListener; import com.gmail.nossr50.listeners.WorldListener; +import com.gmail.nossr50.locale.LocaleLoader; import com.gmail.nossr50.mods.config.CustomArmorConfig; import com.gmail.nossr50.mods.config.CustomBlocksConfig; import com.gmail.nossr50.mods.config.CustomEntityConfig; @@ -474,6 +476,16 @@ public class mcMMO extends JavaPlugin { }); } + // Locale Graph + Graph localeGraph = metrics.createGraph("Locale"); + + localeGraph.addPlotter(new Metrics.Plotter(LocaleLoader.getCurrentLocale().getDisplayLanguage(Locale.US)) { + @Override + public int getValue() { + return 1; + } + }); + metrics.start(); } catch (IOException e) {