mirror of
https://github.com/darksaid98/TownyChat.git
synced 2026-12-03 22:21:20 +00:00
Refactored channels to allow for subclassing
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user