mirror of
https://github.com/darksaid98/TownyChat.git
synced 2026-12-02 14:38:57 +00:00
v0.32:
- Don't check version of CraftIRC. Will work with all versions post 3.1. - Fix for not colouring resident titles.
This commit is contained in:
1 parent
b173b7507a
commit
582796e43a
4 files changed
+8
-12
No files matched your search
+4
-1
@@ -125,4 +125,7 @@ v0.30:
|
||||
- Stop adding extra logs now that chat is being passed back to bukkit.
|
||||
v0.31:
|
||||
- Update for the Bukkit move to AsyncPlayerChatEvent.
|
||||
- Fix in onPlayerCommandPreprocess for an empty message error.
|
||||
- Fix in onPlayerCommandPreprocess for an empty message error.
|
||||
v0.32:
|
||||
- Don't check version of CraftIRC. Will work with all versions post 3.1.
|
||||
- Fix for not colouring resident titles.
|
||||
@@ -118,15 +118,8 @@ public class Chat extends JavaPlugin {
|
||||
*/
|
||||
test = pm.getPlugin("CraftIRC");
|
||||
if (test != null) {
|
||||
try {
|
||||
if (Double.valueOf(test.getDescription().getVersion()) >= 3.1) {
|
||||
craftIRC = (CraftIRC) test;
|
||||
irc = new CraftIRCHandler(this, craftIRC, "towny");
|
||||
} else
|
||||
getLogger().warning("TownyChat requires CraftIRC version 3.1 or higher to relay chat.");
|
||||
} catch (NumberFormatException e) {
|
||||
getLogger().warning("Non number format found for craftIRC version string!");
|
||||
}
|
||||
craftIRC = (CraftIRC) test;
|
||||
irc = new CraftIRCHandler(this, craftIRC, "towny");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -131,7 +131,7 @@ public class TownyChatFormatter {
|
||||
replacer.registerFormatReplacement(Pattern.quote("{townycolor}"), new TownyChatReplacerCallable() {
|
||||
@Override
|
||||
public String call(String match, LocalTownyChatEvent event) throws Exception {
|
||||
return event.getResident().isMayor() ? (event.getResident().isKing() ? ChatSettings.getKingColour() : ChatSettings.getMayorColour()) : "";
|
||||
return event.getResident().isMayor() ? (event.getResident().isKing() ? ChatSettings.getKingColour() : ChatSettings.getMayorColour()) : ChatSettings.getResidentColour();
|
||||
}
|
||||
});
|
||||
replacer.registerFormatReplacement(Pattern.quote("{group}"), new TownyChatReplacerCallable() {
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
name: TownyChat
|
||||
main: com.palmergames.bukkit.TownyChat.Chat
|
||||
version: 0.31
|
||||
version: 0.32
|
||||
author: ElgarL, Shade, phrstbrn
|
||||
website: http://code.google.com/a/eclipselabs.org/p/towny/
|
||||
description: >
|
||||
|
||||
Reference in new issue
Block a user