@@ -8,13 +8,13 @@ import de.randombyte.commandutils.CommandUtils.Companion.PLACEHOLDER_API_ID
88import de.randombyte.commandutils.CommandUtils.Companion.VERSION
99import de.randombyte.commandutils.alias.CommandListener
1010import de.randombyte.commandutils.conditions.HasMoneyCommand
11+ import de.randombyte.commandutils.conditions.HasPayedCommand
1112import de.randombyte.commandutils.conditions.IsAfterCommand
1213import de.randombyte.commandutils.conditions.IsBeforeCommand
1314import de.randombyte.commandutils.config.ConfigAccessor
1415import de.randombyte.commandutils.config.ConfigUpdater
1516import de.randombyte.commandutils.execute.delay.DelayCommand
1617import de.randombyte.commandutils.execute.ifcondition.IfCommand
17- import de.randombyte.commandutils.execute.money.CostCommand
1818import de.randombyte.commandutils.execute.parse.ParseCommand
1919import de.randombyte.commandutils.execute.userUuidFromNameOrUuid
2020import de.randombyte.commandutils.execute.whenonline.ExecuteWhenOnlineCommand
@@ -25,7 +25,6 @@ import de.randombyte.commandutils.service.CommandUtilsServiceImpl
2525import de.randombyte.kosp.extensions.toText
2626import de.randombyte.kosp.getServiceOrFail
2727import me.rojo8399.placeholderapi.PlaceholderService
28- import org.bstats.sponge.Metrics
2928import org.slf4j.Logger
3029import org.spongepowered.api.Sponge
3130import org.spongepowered.api.command.args.GenericArguments.*
@@ -48,7 +47,7 @@ import java.nio.file.Path
4847class CommandUtils @Inject constructor(
4948 val logger : Logger ,
5049 @ConfigDir(sharedRoot = false ) configPath : Path ,
51- val bStats : Metrics ,
50+ // val bStats: Metrics,
5251 val pluginContainer : PluginContainer
5352) {
5453 companion object {
@@ -144,17 +143,16 @@ class CommandUtils @Inject constructor(
144143 .executor(HasMoneyCommand ())
145144 .build()
146145
147- val executeCostCommandSpec = CommandSpec .builder()
148- .permission(" $ROOT_PERMISSION .cost " )
146+ val hasPayedCommandSpec = CommandSpec .builder()
147+ .permission(" $ROOT_PERMISSION .payed " )
149148 .arguments(
150149 userUuidFromNameOrUuid,
151- doubleNum(PRICE_ARG .toText()),
152- remainingRawJoinedStrings(COMMAND_ARG .toText()))
153- .executor(CostCommand ())
150+ doubleNum(PRICE_ARG .toText()))
151+ .executor(HasPayedCommand ())
154152 .build()
155153
156154 val executeParsedCommandSpec = CommandSpec .builder()
157- .permission(" $ROOT_PERMISSION .parse " )
155+ .permission(" $ROOT_PERMISSION .parsed " )
158156 .arguments(
159157 userUuidFromNameOrUuid,
160158 remainingRawJoinedStrings(COMMAND_ARG .toText()))
@@ -182,11 +180,11 @@ class CommandUtils @Inject constructor(
182180 .build(), " is" )
183181 .child(CommandSpec .builder()
184182 .child(hasMoneyCommandSpec, " money" )
185- .build(), " has" )
183+ .child(hasPayedCommandSpec, " payed" )
184+ .build(), " has" )
186185 .child(CommandSpec .builder()
187186 .child(executeWhenOnlineCommandSpec, " whenOnline" )
188187 .child(executeDelayCommandSpec, " delayed" )
189- .child(executeCostCommandSpec, " cost" )
190188 .child(executeIfCommandSpec, " if" )
191189 .child(executeParsedCommandSpec, " parsed" )
192190 .build(), " execute" )
0 commit comments