Skip to content

Commit

Permalink
Fix Towny hook queried async
Browse files Browse the repository at this point in the history
  • Loading branch information
NichtStudioCode committed Jul 24, 2024
1 parent 9097a04 commit bee1b83
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import xyz.xenondevs.nova.util.FakeOnlinePlayer
@Hook(plugins = ["Towny"])
internal object TownyHook : ProtectionIntegration {

override fun getExecutionMode(): ExecutionMode = ExecutionMode.NONE
override fun getExecutionMode(): ExecutionMode = ExecutionMode.SERVER

override fun canBreak(player: OfflinePlayer, item: ItemStack?, location: Location) =
hasPermission(player, location, TownyPermission.ActionType.DESTROY)
Expand Down

0 comments on commit bee1b83

Please sign in to comment.