File tree Expand file tree Collapse file tree
eco-core/core-plugin/src/main/kotlin/com/willfp/ecoitems/libreforge Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ package com.willfp.ecoitems.libreforge
33import com.willfp.eco.core.config.interfaces.Config
44import com.willfp.eco.util.containsIgnoreCase
55import com.willfp.ecoitems.items.EcoItem
6+ import com.willfp.libreforge.ArgType
67import com.willfp.libreforge.Dispatcher
78import com.willfp.libreforge.NoCompileData
89import com.willfp.libreforge.ProvidedHolder
@@ -14,8 +15,18 @@ import com.willfp.libreforge.toDispatcher
1415import org.bukkit.entity.LivingEntity
1516
1617object ConditionHasEcoItem : Condition<NoCompileData>(" has_ecoitem" ) {
18+ override val description = " Passes when the player has the specified EcoItem in their inventory, " +
19+ " armor, or held items."
20+
21+ override val categories = setOf (" inventory" )
22+
1723 override val arguments = arguments {
18- require(" item" , " You must specify the item!" )
24+ require(
25+ " item" ,
26+ " You must specify the item!" ,
27+ description = " The ID of the EcoItem to check for." ,
28+ type = ArgType .STRING
29+ )
1930 }
2031
2132 override fun isMet (
You can’t perform that action at this time.
0 commit comments