|
|
@ -1,6 +1,7 @@ |
|
|
|
package com.benjocraeft.sharehealth; |
|
|
|
package com.benjocraeft.sharehealth; |
|
|
|
|
|
|
|
|
|
|
|
import org.bukkit.Bukkit; |
|
|
|
import org.bukkit.Bukkit; |
|
|
|
|
|
|
|
import org.bukkit.EntityEffect; |
|
|
|
import org.bukkit.GameMode; |
|
|
|
import org.bukkit.GameMode; |
|
|
|
import org.bukkit.block.Block; |
|
|
|
import org.bukkit.block.Block; |
|
|
|
import org.bukkit.command.PluginCommand; |
|
|
|
import org.bukkit.command.PluginCommand; |
|
|
@ -128,6 +129,12 @@ public class Sharehealth extends JavaPlugin { |
|
|
|
if (isFailed) |
|
|
|
if (isFailed) |
|
|
|
return; |
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
GetPlayers().forEach(p -> { |
|
|
|
|
|
|
|
if (p == player) |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
p.playEffect(EntityEffect.HURT); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
double receivedDamage = damage + absorbedDamage; |
|
|
|
double receivedDamage = damage + absorbedDamage; |
|
|
|
|
|
|
|
|
|
|
|
if (isMessageAllowed) |
|
|
|
if (isMessageAllowed) |
|
|
|