Skip to content

Commit

Permalink
#74 add piston event into adminprivate (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
makeevrserg authored Aug 29, 2024
1 parent 01fbe62 commit 0aa04f9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ makeevrserg.java.ktarget=21
# Project
makeevrserg.project.name=AspeKt
makeevrserg.project.group=ru.astrainteractive.aspekt
makeevrserg.project.version.string=2.26.0
makeevrserg.project.version.string=2.26.1
makeevrserg.project.description=Essentials plugin for EmpireProjekt
makeevrserg.project.developers=makeevrserg|Makeev Roman|[email protected]
makeevrserg.project.url=https://empireprojekt.ru
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import org.bukkit.event.block.BlockBurnEvent
import org.bukkit.event.block.BlockExplodeEvent
import org.bukkit.event.block.BlockFromToEvent
import org.bukkit.event.block.BlockIgniteEvent
import org.bukkit.event.block.BlockPistonEvent
import org.bukkit.event.block.BlockPlaceEvent
import org.bukkit.event.block.BlockSpreadEvent
import org.bukkit.event.entity.EntityDamageByEntityEvent
Expand Down Expand Up @@ -263,4 +264,14 @@ internal class AdminPrivateEvent(
)
}
}

val pistonEvent = DSLEvent<BlockPistonEvent>(eventListener, plugin) { e ->
handleDefault(
retractKey = RetractKey.Vararg(e.block.location.chunk, "BlockPistonEvent"),
e = e,
adminChunk = e.block.location.chunk.adminChunk,
player = null,
flag = ChunkFlag.PLACE
)
}
}

0 comments on commit 0aa04f9

Please sign in to comment.