Refactored channels to allow for subclassing

This commit is contained in:
Zak Ford committed 2012-02-16 17:28:43 -05:00
1 parent defc586ee2
commit ae46e35272
5 files changed
+306 -263

No files matched your search

@@ -134,7 +134,7 @@ public class Chat extends JavaPlugin {
}
public void registerEvents() {
TownyPlayerListener = new TownyPlayerHighestListener(this, irc, dynMap);
TownyPlayerListener = new TownyPlayerHighestListener(this);
if (TownyPlayerListener != null)
pm.registerEvents(TownyPlayerListener, this);
@@ -191,6 +191,14 @@ public class Chat extends JavaPlugin {
public Towny getTowny() {
return towny;
}
public CraftIRCHandler getIRC() {
return irc;
}
public DynmapAPI getDynmap() {
return dynMap;
}
public HeroicDeathForwarder getHeroicDeath() {
return heroicDeathListener;