-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Don't run cooldown display system if there are no active cooldow…
…ns on player fix: Use PlayerArmSwingEvent to detect item left clicks on air
- Loading branch information
Showing
13 changed files
with
61 additions
and
244 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,3 +13,4 @@ eclipse | |
*.iws | ||
|
||
logs | ||
/truckconfig.json |
21 changes: 21 additions & 0 deletions
21
...ridge/src/main/kotlin/com/mineinabyss/geary/papermc/bridge/actions/SendActionBarAction.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.mineinabyss.geary.papermc.bridge.actions | ||
|
||
import com.mineinabyss.geary.actions.Action | ||
import com.mineinabyss.geary.actions.ActionGroupContext | ||
import com.mineinabyss.geary.actions.expressions.Expression | ||
import com.mineinabyss.idofront.serialization.MiniMessageSerializer | ||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
import net.kyori.adventure.text.Component | ||
import org.bukkit.entity.Player | ||
|
||
@Serializable | ||
@SerialName("geary:send_action_bar") | ||
class SendActionBarAction( | ||
val text: Expression<@Serializable(with = MiniMessageSerializer::class) Component>, | ||
) : Action { | ||
override fun ActionGroupContext.execute() { | ||
val player = entity.get<Player>() ?: return | ||
player.sendActionBar(eval(text)) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 0 additions & 36 deletions
36
...tions/src/main/kotlin/com/mineinabyss/geary/papermc/features/general/cooldown/Cooldown.kt
This file was deleted.
Oops, something went wrong.
84 changes: 0 additions & 84 deletions
84
...n/kotlin/com/mineinabyss/geary/papermc/features/general/cooldown/CooldownDisplaySystem.kt
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
...rc/main/kotlin/com/mineinabyss/geary/papermc/features/general/cooldown/CooldownFeature.kt
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
...rc/main/kotlin/com/mineinabyss/geary/papermc/features/general/cooldown/CooldownStarted.kt
This file was deleted.
Oops, something went wrong.
24 changes: 0 additions & 24 deletions
24
...otlin/com/mineinabyss/geary/papermc/features/items/consumable/ConsumeItemFromInventory.kt
This file was deleted.
Oops, something went wrong.
24 changes: 0 additions & 24 deletions
24
...main/kotlin/com/mineinabyss/geary/papermc/features/items/consumable/RequiresConsumable.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 0 additions & 33 deletions
33
geary-tests/src/test/kotlin/com/mineinabyss/geary/papermc/config/ExpressionDecodingTest.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters