mirror of
https://github.com/Auxilor/Reforges.git
synced 2025-12-22 16:39:34 +00:00
Compare commits
28 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e1c70dd4b4 | ||
|
|
ec3a4215b7 | ||
|
|
4f80c3b5f3 | ||
|
|
55efb74fb4 | ||
|
|
d4efad6cd7 | ||
|
|
4fc10862f6 | ||
|
|
c0b96e58ff | ||
|
|
1bdf9b9f4c | ||
|
|
9baaf37108 | ||
|
|
8b89c16754 | ||
|
|
8ee6b64dec | ||
|
|
507e476de0 | ||
|
|
e4bdc914d6 | ||
|
|
89c11c5d03 | ||
|
|
ace9174713 | ||
|
|
11b755c03e | ||
|
|
e502281fac | ||
|
|
7f5b2e28d4 | ||
|
|
0c77fae5c0 | ||
|
|
67c67fe494 | ||
|
|
91cd161e0f | ||
|
|
0ae01af7cf | ||
|
|
7dd0f35f1f | ||
|
|
e4afc37f45 | ||
|
|
b74a7f1085 | ||
|
|
94d2ab4593 | ||
|
|
9fce6a6d74 | ||
|
|
a84231c13b |
@@ -44,8 +44,8 @@ allprojects {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compileOnly 'com.willfp:eco:6.36.0'
|
||||
implementation 'com.willfp:libreforge:3.76.1'
|
||||
compileOnly 'com.willfp:eco:6.38.0'
|
||||
implementation 'com.willfp:libreforge:3.86.0'
|
||||
implementation 'org.joml:joml:1.10.4'
|
||||
|
||||
compileOnly 'org.jetbrains:annotations:23.0.0'
|
||||
|
||||
@@ -13,10 +13,10 @@ import com.willfp.reforges.display.ReforgesDisplay
|
||||
import com.willfp.reforges.integrations.talismans.TalismansIntegration
|
||||
import com.willfp.reforges.reforges.Reforges
|
||||
import com.willfp.reforges.reforges.util.ReforgeArgParser
|
||||
import com.willfp.reforges.util.ReforgeEnableListeners
|
||||
import com.willfp.reforges.util.ReforgeLookup
|
||||
import com.willfp.reforges.util.AntiPlaceListener
|
||||
import com.willfp.reforges.util.DiscoverRecipeListener
|
||||
import com.willfp.reforges.util.ReforgeEnableListeners
|
||||
import com.willfp.reforges.util.ReforgeLookup
|
||||
import org.bukkit.event.Listener
|
||||
|
||||
class ReforgesPlugin : LibReforgePlugin() {
|
||||
@@ -64,7 +64,7 @@ class ReforgesPlugin : LibReforgePlugin() {
|
||||
}
|
||||
|
||||
override fun getMinimumEcoVersion(): String {
|
||||
return "6.35.1"
|
||||
return "6.38.0"
|
||||
}
|
||||
|
||||
companion object {
|
||||
|
||||
@@ -3,6 +3,7 @@ package com.willfp.reforges.display
|
||||
import com.willfp.eco.core.display.Display
|
||||
import com.willfp.eco.core.display.DisplayModule
|
||||
import com.willfp.eco.core.display.DisplayPriority
|
||||
import com.willfp.eco.core.display.DisplayProperties
|
||||
import com.willfp.eco.core.fast.FastItemStack
|
||||
import com.willfp.eco.core.fast.fast
|
||||
import com.willfp.eco.util.SkullUtils
|
||||
@@ -24,6 +25,7 @@ class ReforgesDisplay(private val plugin: ReforgesPlugin) : DisplayModule(plugin
|
||||
override fun display(
|
||||
itemStack: ItemStack,
|
||||
player: Player?,
|
||||
props: DisplayProperties,
|
||||
vararg args: Any
|
||||
) {
|
||||
val targets = ReforgeTargets.getForItem(itemStack)
|
||||
@@ -44,9 +46,8 @@ class ReforgesDisplay(private val plugin: ReforgesPlugin) : DisplayModule(plugin
|
||||
|
||||
if (reforge == null && stone == null) {
|
||||
if (plugin.configYml.getBool("reforge.show-reforgable")) {
|
||||
if (player != null && plugin.configYml.getBool("reforge.no-reforgable-in-gui")) {
|
||||
val inventory = player.openInventory.topInventory
|
||||
if (inventory.contents.contains(itemStack) && inventory.holder == null) {
|
||||
if (plugin.configYml.getBool("reforge.no-reforgable-in-gui")) {
|
||||
if (props.inGui) {
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
@@ -40,8 +40,8 @@ class ReforgeEnableListeners(private val plugin: EcoPlugin) : Listener {
|
||||
refresh()
|
||||
val player = event.player
|
||||
for (value in values()) {
|
||||
for ((effect) in value.effects) {
|
||||
effect.disableForPlayer(player)
|
||||
for (effect in value.effects) {
|
||||
effect.disableFor(player)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#libreforge-updater
|
||||
#Fri Jul 22 14:22:10 BST 2022
|
||||
version=5.27.1
|
||||
#Sat Aug 20 09:58:58 CEST 2022
|
||||
version=5.37.0
|
||||
plugin-name=Reforges
|
||||
|
||||
Reference in New Issue
Block a user