Fix whitelist message in configuration not being used. (https://github.com/PEXPlugins/Modifyworld/issues/21)

This commit is contained in:
Dion Williams 2012-03-17 13:51:10 +00:00
parent ff910067f9
commit f11f753b8e

View File

@ -50,7 +50,7 @@ public class PlayerListener extends ModifyworldListener {
public PlayerListener(Plugin plugin, ConfigurationSection config) {
super(plugin, config);
this.whitelistKickMessage = config.getString("messages.whitelist", this.whitelistKickMessage);
this.whitelistKickMessage = config.getString("messages.whitelistMessage", this.whitelistKickMessage);
this.prohibitedItemMessage = config.getString("messages.prohibitedItem", this.prohibitedItemMessage);
this.checkInventory = config.getBoolean("itemRestrictions", this.checkInventory);
this.dropRestrictedItem = config.getBoolean("drop-restricted-item", this.dropRestrictedItem);