Continued updating codebase
This commit is contained in:
parent
8a8bc9b65d
commit
7a51b22842
@ -207,7 +207,7 @@ public class HerobrineAI extends JavaPlugin implements Listener {
|
||||
// Support initialize
|
||||
this.support = new Support();
|
||||
|
||||
Class[] argst = new Class[3];
|
||||
Class<?>[] argst = new Class[3];
|
||||
argst[0] = Class.class;
|
||||
argst[1] = String.class;
|
||||
argst[2] = int.class;
|
||||
|
@ -18,7 +18,7 @@ public class NetworkHandler extends PlayerConnection {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void sendPacket(final Packet packet) {
|
||||
public void sendPacket(final Packet<?> packet) {
|
||||
|
||||
}
|
||||
|
||||
|
@ -10,11 +10,11 @@ import org.bukkit.entity.Player;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
|
||||
public class NetworkUtils {
|
||||
public static void sendPacketNearby(Location location, Packet packet) {
|
||||
public static void sendPacketNearby(Location location, Packet<?> packet) {
|
||||
sendPacketNearby(location, packet, 64);
|
||||
}
|
||||
|
||||
public static void sendPacketNearby(Location location, Packet packet, double radius) {
|
||||
public static void sendPacketNearby(Location location, Packet<?> packet, double radius) {
|
||||
radius *= radius;
|
||||
final World world = location.getWorld();
|
||||
for (Player player : Bukkit.getOnlinePlayers()) {
|
||||
|
@ -193,12 +193,12 @@ public class EntityListener implements Listener {
|
||||
HerobrineDropItems();
|
||||
|
||||
PluginCore.getAICore().CancelTarget(CoreType.ANY);
|
||||
PluginCore.HerobrineHP = PluginCore.HerobrineMaxHP;
|
||||
HerobrineAI.HerobrineHP = HerobrineAI.HerobrineMaxHP;
|
||||
Player player = (Player) arrow.getShooter();
|
||||
player.sendMessage("<Herobrine> " + PluginCore.getConfigDB().DeathMessage);
|
||||
|
||||
} else {
|
||||
PluginCore.HerobrineHP -= event.getDamage();
|
||||
HerobrineAI.HerobrineHP -= event.getDamage();
|
||||
PluginCore.HerobrineNPC.HurtAnimation();
|
||||
AICore.log.info("HIT: " + event.getDamage());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user