Skip to content

Commit

Permalink
chore: small code enhancements
Browse files Browse the repository at this point in the history
  • Loading branch information
TheFruxz committed Oct 22, 2022
1 parent 019a7e6 commit 51ad2ca
Showing 1 changed file with 12 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ abstract class Interchange(
) : CommandExecutor, KeyedIdentifiable<Interchange>, VendorOnDemand, Logging, Labeled {

init {

completion.identity = label

preferredVendor?.let {
Expand Down Expand Up @@ -285,13 +286,13 @@ abstract class Interchange(

when (executionProcess()(
InterchangeAccess(
vendor,
clientType,
sender,
this@Interchange,
label,
parameters,
emptyList()
vendor = vendor,
executorType = clientType,
executor = sender,
interchange = this@Interchange,
label = label,
parameters = parameters,
additionalParameters = emptyList()
)
)) {

Expand Down Expand Up @@ -328,7 +329,10 @@ abstract class Interchange(
wrongClientFeedback(sender)

} else
cooldownFeedback(sender, sender.asPlayer.getCooldown("interchange:$key"))
cooldownFeedback(
receiver = sender,
cooldown = sender.asPlayer.getCooldown("interchange:$key")
)


}
Expand Down

0 comments on commit 51ad2ca

Please sign in to comment.