- Add support for PlaceholderAPI's placeholders in the chatconfig.yml's

channel_format lines.
This commit is contained in:
Llm Dl committed 2019-10-14 11:48:50 -05:00
1 parent 475e26dc81
commit d038dd6a3a
5 files changed
+29 -8

No files matched your search

@@ -42,7 +42,8 @@ public class Chat extends JavaPlugin {
protected PluginManager pm;
private Towny towny = null;
private DynmapAPI dynMap = null;
public static boolean usingPlaceholderAPI = false;
boolean chatConfigError = false;
boolean channelsConfigError = false;
@@ -120,6 +121,11 @@ public class Chat extends JavaPlugin {
if (test != null) {
dynMap = (DynmapAPI) test;
}
test = pm.getPlugin("PlaceholderAPI");
if (test != null) {
usingPlaceholderAPI = true;
}
}