mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 05:06:45 +01:00
Can't remember
This commit is contained in:
parent
2fdd930db1
commit
a8f544a341
@ -6,6 +6,7 @@ import java.util.logging.Logger;
|
||||
//Author: nossr50, TrapAlice, cerevisiae
|
||||
//=====================================================================
|
||||
public class vMinecraftListener extends PluginListener {
|
||||
public int damagetype;
|
||||
protected static final Logger log = Logger.getLogger("Minecraft");
|
||||
|
||||
//=====================================================================
|
||||
@ -91,7 +92,6 @@ public class vMinecraftListener extends PluginListener {
|
||||
}
|
||||
public boolean onDamage(PluginLoader.DamageType type, BaseEntity attacker, BaseEntity defender, int amount) {
|
||||
if(defender.isPlayer()){
|
||||
int damagetype = 0; //Set to 0 to begin with
|
||||
Player player = (Player)defender;
|
||||
if (attacker.isPlayer()) {
|
||||
Player pAttacker = (Player)attacker;
|
||||
|
Loading…
Reference in New Issue
Block a user