mirror of
https://github.com/darksaid98/TownyChat.git
synced 2026-12-03 22:21:20 +00:00
- Add support for PlaceholderAPI's placeholders in the chatconfig.yml's
channel_format lines.
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user