Fixed formatting

This commit is contained in:
Auxilor 2021-05-07 19:07:16 +01:00
parent 26b158ae4c
commit 8c83be123f
5 changed files with 8 additions and 7 deletions

View File

@ -1,4 +1,5 @@
package com.willfp.ecoenchants.enchantments.ecoenchants.special;
import com.willfp.eco.core.integrations.antigrief.AntigriefManager;
import com.willfp.ecoenchants.enchantments.EcoEnchant;
import com.willfp.ecoenchants.enchantments.EcoEnchants;

View File

@ -14,4 +14,4 @@ enabled: false # There may be potential conflicts if modifying vanilla enchantme
# Currently, it is *not* possible to modify the enchantment levels from enchanting tables.
# It will work with anvils however, but since it is still possible to get enchantments at their vanilla
# max levels, then it isn't recommended to lower the max level of a vanilla enchantment, only to raise it.
max-levels: []
max-levels: [ ]

View File

@ -19,8 +19,8 @@ public class Firewand extends Spell {
@Override
public boolean onUse(@NotNull final Player player,
final int level,
@NotNull final PlayerInteractEvent event) {
final int level,
@NotNull final PlayerInteractEvent event) {
SmallFireball fireball = player.launchProjectile(SmallFireball.class, player.getEyeLocation().getDirection().multiply(this.getConfig().getDouble(EcoEnchants.CONFIG_LOCATION + "velocity")));
fireball.setIsIncendiary(this.getConfig().getBool(EcoEnchants.CONFIG_LOCATION + "fire"));
fireball.setMetadata("eco-damage", this.getPlugin().getMetadataValueFactory().create(this.getConfig().getDouble(EcoEnchants.CONFIG_LOCATION + "damage-per-level") * level));

View File

@ -32,8 +32,8 @@ public class Xray extends Spell {
@Override
public boolean onUse(@NotNull final Player player,
final int level,
@NotNull final PlayerInteractEvent event) {
final int level,
@NotNull final PlayerInteractEvent event) {
Block block = event.getClickedBlock();
if (!event.getAction().equals(Action.RIGHT_CLICK_BLOCK)) {

View File

@ -1,2 +1,2 @@
version = 7.3.7
plugin-name = EcoEnchants
version=7.3.7
plugin-name=EcoEnchants