CombatTag not working with magic item
Blamo27 opened this issue ยท 4 comments
Hello,
My server has this version of magic :
-> #152
-> http://jenkins.elmakers.com/job/MagicPlugin-1.8/42/com.elmakers.mine.bukkit.plugins%24Magic/
But this version don't include the fix of this version :
-> #94 (CombatTag)
-> http://jenkins.elmakers.com/job/MagicPlugin-1.8/37/com.elmakers.mine.bukkit.plugins%24Magic/artifact/com.elmakers.mine.bukkit.plugins/Magic/5.5.6-SNAPSHOT/Magic-5.5.6-SNAPSHOT.jar
Could you upload a correct version please ?
Thank you.
Okey sorry, it was my plugin ... ๐
@EventHandler(priority=EventPriority.LOWEST)
public void PlayerLogin(PlayerJoinEvent event) throws SQLException {
if (event.getPlayer() != null) {
Player p = (Player) event.getPlayer();
p.setHealth(p.getMaxHealth()); <----- Very very bad idea .. :/
// Other lines
}
}