mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-11-22 15:05:18 +01:00
Fixed formatting
This commit is contained in:
parent
26b158ae4c
commit
8c83be123f
@ -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;
|
||||
|
@ -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: [ ]
|
@ -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));
|
||||
|
@ -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)) {
|
||||
|
@ -1,2 +1,2 @@
|
||||
version = 7.3.7
|
||||
plugin-name = EcoEnchants
|
||||
version=7.3.7
|
||||
plugin-name=EcoEnchants
|
Loading…
Reference in New Issue
Block a user