mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2024-11-22 15:05:18 +01:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
5a2463b44c
@ -55,7 +55,7 @@ allprojects {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compileOnly 'com.willfp:eco:6.19.0'
|
||||
compileOnly 'com.willfp:eco:6.20.0'
|
||||
|
||||
compileOnly 'org.jetbrains:annotations:19.0.0'
|
||||
|
||||
|
@ -3,6 +3,6 @@ version rootProject.version
|
||||
|
||||
subprojects {
|
||||
dependencies {
|
||||
implementation 'com.willfp:libreforge:3.3.0'
|
||||
implementation 'com.willfp:libreforge:3.4.1'
|
||||
}
|
||||
}
|
@ -53,7 +53,7 @@ public abstract class EcoEnchant extends Enchantment implements Listener, Watche
|
||||
/**
|
||||
* Instance of EcoEnchants for enchantments to be able to access.
|
||||
*/
|
||||
@Getter(AccessLevel.PROTECTED)
|
||||
@Getter
|
||||
private final EcoEnchantsPlugin plugin = EcoEnchantsPlugin.getInstance();
|
||||
|
||||
/**
|
||||
|
@ -110,6 +110,7 @@ public abstract class Spell extends EcoEnchant {
|
||||
|
||||
PlaceholderManager.registerPlaceholder(
|
||||
new PlaceholderEntry(
|
||||
this.getPlugin(),
|
||||
this.getPermissionName() + "_" + "cooldown",
|
||||
player -> StringUtils.internalToString(getCooldown(this, player))
|
||||
)
|
||||
|
@ -82,6 +82,7 @@ public class EnchantmentUtils {
|
||||
public static void registerPlaceholders(@NotNull final EcoEnchant enchantment) {
|
||||
PlaceholderManager.registerPlaceholder(
|
||||
new PlaceholderEntry(
|
||||
enchantment.getPlugin(),
|
||||
enchantment.getPermissionName() + "_" + "enabled",
|
||||
player -> String.valueOf(enchantment.isEnabled())
|
||||
)
|
||||
@ -93,6 +94,7 @@ public class EnchantmentUtils {
|
||||
|
||||
PlaceholderManager.registerPlaceholder(
|
||||
new PlaceholderEntry(
|
||||
enchantment.getPlugin(),
|
||||
enchantment.getPermissionName() + "_" + key,
|
||||
player -> StringUtils.internalToString(object)
|
||||
)
|
||||
|
@ -1,2 +1,2 @@
|
||||
version = 8.24.1
|
||||
version = 8.25.0
|
||||
plugin-name = EcoEnchants
|
Loading…
Reference in New Issue
Block a user