mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2025-02-02 02:11:21 +01:00
Implemented toStrings
This commit is contained in:
parent
c2c446ca56
commit
cc7d934489
@ -2,14 +2,18 @@ package com.willfp.ecoenchants.command;
|
|||||||
|
|
||||||
import com.willfp.eco.core.command.impl.Subcommand;
|
import com.willfp.eco.core.command.impl.Subcommand;
|
||||||
import com.willfp.ecoenchants.EcoEnchantsPlugin;
|
import com.willfp.ecoenchants.EcoEnchantsPlugin;
|
||||||
|
import com.willfp.libreforge.LibReforgeUtils;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
|
import org.bukkit.enchantments.Enchantment;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.inventory.meta.ItemMeta;
|
import org.bukkit.inventory.meta.ItemMeta;
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.Arrays;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
|
|
||||||
@SuppressWarnings("deprecation")
|
@SuppressWarnings("deprecation")
|
||||||
public class CommandDebug extends Subcommand {
|
public class CommandDebug extends Subcommand {
|
||||||
|
@ -582,4 +582,9 @@ public abstract class EcoEnchant extends Enchantment implements Listener, Watche
|
|||||||
public @NotNull io.papermc.paper.enchantments.EnchantmentRarity getRarity() {
|
public @NotNull io.papermc.paper.enchantments.EnchantmentRarity getRarity() {
|
||||||
return io.papermc.paper.enchantments.EnchantmentRarity.COMMON;
|
return io.papermc.paper.enchantments.EnchantmentRarity.COMMON;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "EcoEnchant{" + this.getKey() + "}";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,7 @@ import com.willfp.libreforge.conditions.ConfiguredCondition;
|
|||||||
import com.willfp.libreforge.effects.ConfiguredEffect;
|
import com.willfp.libreforge.effects.ConfiguredEffect;
|
||||||
import com.willfp.libreforge.effects.Effects;
|
import com.willfp.libreforge.effects.Effects;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
|
import org.bukkit.Bukkit;
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
@ -60,4 +61,11 @@ public class CustomEcoEnchantLevel implements Holder {
|
|||||||
public Set<ConfiguredEffect> getEffects() {
|
public Set<ConfiguredEffect> getEffects() {
|
||||||
return effects;
|
return effects;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "CustomEcoEnchantLevel{" +
|
||||||
|
"parent=" + parent +
|
||||||
|
'}';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user