This commit is contained in:
Minecon724 2022-01-29 16:19:04 +01:00
parent 5cdd686db9
commit 9838c4d90b
2 changed files with 20 additions and 16 deletions

View File

@ -35,6 +35,7 @@ public class Main extends JavaPlugin implements Listener {
boolean ai; boolean ai;
boolean headRotations; boolean headRotations;
boolean attack;
double chance; double chance;
double attackDamage; double attackDamage;
double attackReach; double attackReach;
@ -84,7 +85,8 @@ public class Main extends JavaPlugin implements Listener {
} }
} }
} }
}; //.runTaskTimer(this, config.getLong("hitDelay"), 0L); }.runTaskTimer(this, config.getLong("hitDelay"), 0L);
if (headRotations) {
new BukkitRunnable() { new BukkitRunnable() {
@Override @Override
public void run() { public void run() {
@ -99,6 +101,7 @@ public class Main extends JavaPlugin implements Listener {
} }
}.runTaskTimerAsynchronously(this, refreshDelay, 0L); }.runTaskTimerAsynchronously(this, refreshDelay, 0L);
} }
}
@EventHandler @EventHandler
public void entitySpawn(EntitySpawnEvent e) { public void entitySpawn(EntitySpawnEvent e) {

View File

@ -12,9 +12,10 @@ attackReach: 2
# See https://hub.spigotmc.org/javadocs/spigot/org/bukkit/potion/PotionEffectType.html # See https://hub.spigotmc.org/javadocs/spigot/org/bukkit/potion/PotionEffectType.html
# Set to [] to disable # Set to [] to disable
effects: effects:
- "JUMP:2" - "JUMP:1"
# Head rotations, disabling can slightly improve performance
# No need to change this
headRotations: true headRotations: true
refreshDelay: 20 refreshDelay: 20
# No need to change this
expandUp: 0 expandUp: 0
attack: true