Made a sepparate health bar listener, reduced duplicate code and added respawn listener.

This commit is contained in:
Olof Larsson
2012-04-01 15:08:20 +02:00
parent 3eed72783b
commit 10522e7048
4 changed files with 60 additions and 29 deletions

View File

@@ -31,6 +31,7 @@ import com.massivecraft.factions.listeners.FactionsBlockListener;
import com.massivecraft.factions.listeners.FactionsChatListener;
import com.massivecraft.factions.listeners.FactionsEntityListener;
import com.massivecraft.factions.listeners.FactionsExploitListener;
import com.massivecraft.factions.listeners.FactionsHealthBarListener;
import com.massivecraft.factions.listeners.FactionsPlayerListener;
import com.massivecraft.factions.listeners.FactionsServerListener;
import com.massivecraft.factions.struct.ChatMode;
@@ -58,6 +59,7 @@ public class P extends MPlugin
public final FactionsExploitListener exploitListener;
public final FactionsBlockListener blockListener;
public final FactionsServerListener serverListener;
public final FactionsHealthBarListener healthBarListener;
// Persistance related
private boolean locked = false;
@@ -78,6 +80,7 @@ public class P extends MPlugin
this.exploitListener = new FactionsExploitListener();
this.blockListener = new FactionsBlockListener(this);
this.serverListener = new FactionsServerListener(this);
this.healthBarListener = new FactionsHealthBarListener(this);
}