1
0
mirror of https://e.coding.net/circlecloud/QuickShop.git synced 2024-11-16 00:58:54 +00:00

#10 Force bukkit chat handler option

Added 'force-bukkit-chat-handler' to the config.yml
This commit is contained in:
KaiKikuchi 2015-09-25 13:46:46 +02:00
parent df162cc94c
commit ea155cff73
2 changed files with 4 additions and 1 deletions

View File

@ -266,7 +266,7 @@ public class QuickShop extends JavaPlugin {
Bukkit.getServer().getPluginManager().registerEvents(chunkListener, this); Bukkit.getServer().getPluginManager().registerEvents(chunkListener, this);
} }
Bukkit.getServer().getPluginManager().registerEvents(worldListener, this); Bukkit.getServer().getPluginManager().registerEvents(worldListener, this);
if (Bukkit.getPluginManager().getPlugin("Herochat") != null) { if (this.getConfig().getBoolean("force-bukkit-chat-handler", false) && Bukkit.getPluginManager().getPlugin("Herochat") != null) {
this.getLogger().info("Found Herochat... Hooking!"); this.getLogger().info("Found Herochat... Hooking!");
this.heroChatListener = new HeroChatListener(this); this.heroChatListener = new HeroChatListener(this);
Bukkit.getServer().getPluginManager().registerEvents(heroChatListener, this); Bukkit.getServer().getPluginManager().registerEvents(heroChatListener, this);

View File

@ -11,6 +11,9 @@ log-actions: true
#For item-item based economies that don't use virtual coins. #For item-item based economies that don't use virtual coins.
whole-number-prices-only: false whole-number-prices-only: false
#Force bukkit chat handler (https://github.com/KaiKikuchi/QuickShop/issues/10)
force-bukkit-chat-handler: false
database: database:
mysql: false mysql: false
host: localhost host: localhost