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:
parent
df162cc94c
commit
ea155cff73
@ -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);
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user