Implemented toStrings

This commit is contained in:
Auxilor 2022-01-08 16:01:09 +00:00
parent c2c446ca56
commit cc7d934489
3 changed files with 17 additions and 0 deletions

View File

@ -2,14 +2,18 @@ package com.willfp.ecoenchants.command;
import com.willfp.eco.core.command.impl.Subcommand;
import com.willfp.ecoenchants.EcoEnchantsPlugin;
import com.willfp.libreforge.LibReforgeUtils;
import org.bukkit.Bukkit;
import org.bukkit.command.CommandSender;
import org.bukkit.enchantments.Enchantment;
import org.bukkit.entity.Player;
import org.bukkit.inventory.meta.ItemMeta;
import org.jetbrains.annotations.NotNull;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
@SuppressWarnings("deprecation")
public class CommandDebug extends Subcommand {

View File

@ -582,4 +582,9 @@ public abstract class EcoEnchant extends Enchantment implements Listener, Watche
public @NotNull io.papermc.paper.enchantments.EnchantmentRarity getRarity() {
return io.papermc.paper.enchantments.EnchantmentRarity.COMMON;
}
@Override
public String toString() {
return "EcoEnchant{" + this.getKey() + "}";
}
}

View File

@ -8,6 +8,7 @@ import com.willfp.libreforge.conditions.ConfiguredCondition;
import com.willfp.libreforge.effects.ConfiguredEffect;
import com.willfp.libreforge.effects.Effects;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.jetbrains.annotations.NotNull;
import java.util.HashSet;
@ -60,4 +61,11 @@ public class CustomEcoEnchantLevel implements Holder {
public Set<ConfiguredEffect> getEffects() {
return effects;
}
@Override
public String toString() {
return "CustomEcoEnchantLevel{" +
"parent=" + parent +
'}';
}
}