From 86d6cbea7cf1352c087f9fcb12776361f9d14539 Mon Sep 17 00:00:00 2001 From: ElgarL Date: Tue, 25 Oct 2011 18:24:48 +0000 Subject: [PATCH] v0.3: - TownyChat now only enables itself if Towny successfully starts. --- src/changelog.txt | 4 +++- .../palmergames/bukkit/TownyChat/tasks/onLoadedTask.java | 8 +++++--- src/plugin.yml | 2 +- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/changelog.txt b/src/changelog.txt index 261c1dc..27e0966 100644 --- a/src/changelog.txt +++ b/src/changelog.txt @@ -3,4 +3,6 @@ v0.1: v0.2: - Fixed players entering regex fields in chat crashing {msg}. - changed PLAYER_CHAT event to run earlier so we triger before other chat plugins. - If players are using chat modes we need to run first to cancel the chat event for other plugins. \ No newline at end of file + If players are using chat modes we need to run first to cancel the chat event for other plugins. +v0.3: + - TownyChat now only enables itself if Towny successfully starts. \ No newline at end of file diff --git a/src/com/palmergames/bukkit/TownyChat/tasks/onLoadedTask.java b/src/com/palmergames/bukkit/TownyChat/tasks/onLoadedTask.java index 5f3fc3d..2ea0f53 100644 --- a/src/com/palmergames/bukkit/TownyChat/tasks/onLoadedTask.java +++ b/src/com/palmergames/bukkit/TownyChat/tasks/onLoadedTask.java @@ -22,9 +22,11 @@ public class onLoadedTask implements Runnable { @Override public void run() { - - plugin.getLogger().info("-******* TownyChat enabled *******-"); - plugin.registerEvents(); + + if (this.towny.isEnabled()) { + plugin.getLogger().info("-******* TownyChat enabled *******-"); + plugin.registerEvents(); + } } diff --git a/src/plugin.yml b/src/plugin.yml index bb2c981..7bf9a77 100644 --- a/src/plugin.yml +++ b/src/plugin.yml @@ -1,6 +1,6 @@ name: TownyChat main: com.palmergames.bukkit.TownyChat.Chat -version: 0.2 +version: 0.3 author: ElgarL website: http://code.google.com/a/eclipselabs.org/p/towny/ description: >