Skip to content

Conversation

bielie993-ui
Copy link
Contributor

@bielie993-ui bielie993-ui commented Aug 29, 2025

Accidental Teleport Blocker

A simple plugin which blocks teleports to prevent accidental teleports while casting other spells in any spellbook. The block can be overruled by pressing a modifier key.

This idea came from the frustration of accidentally teleporting while trying to cast high alchemy or manually casting other spells.


Features

  • Blocks any teleports you configured.
    • Use the shift right click menu to add/remove teleports from the block list.
  • Supports all spellbooks (normal, ancient, lunar and arceuus).
  • Configurable modifier key to overrule the block.
  • Only activate block after a spell on your configurable spell list was cast.
    • Configurable timeout to reset the block after a certain time.
    • Use the shift right click menu to add/remove spells from the spell list.
    • Share your spell list with others using the comma-separated text box.

Printscreens

screenshot

screenshot

screenshot

screenshot

This is a reworked and improved version of: #8909

@runelite-github-app
Copy link

runelite-github-app bot commented Aug 29, 2025

@bielie993-ui bielie993-ui changed the title Add Accidental Teleport Block Add Accidental Teleport Blocker Aug 29, 2025
@aHooder
Copy link
Member

aHooder commented Aug 29, 2025

The build is currently failing due to a missing license file.

@aHooder aHooder added the waiting for author waiting for the pr author to make changes or respond to questions label Aug 29, 2025
@bielie993-ui bielie993-ui requested a review from a team as a code owner August 29, 2025 15:12
@runelite-github-app runelite-github-app bot added package change and removed waiting for author waiting for the pr author to make changes or respond to questions labels Aug 29, 2025
Copy link
Member

@aHooder aHooder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code looks alright to me 👍 You'll still have to wait for a maintainer to review after resolving the license issue though.

@aHooder aHooder added the waiting for author waiting for the pr author to make changes or respond to questions label Aug 29, 2025
@runelite-github-app runelite-github-app bot removed package change waiting for author waiting for the pr author to make changes or respond to questions labels Aug 29, 2025
@runelite-github-app
Copy link

runelite-github-app bot commented Aug 29, 2025

Internal use only: Reviewer details Maintainer details

@bielie993-ui bielie993-ui requested a review from aHooder August 29, 2025 18:48
Copy link
Member

@aHooder aHooder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a bit broken with teleports which have multiple possible destinations:
image

Also, you should use client.getMenu().createMenuEntry instead of the deprecated versions here and here.

@aHooder aHooder added the waiting for author waiting for the pr author to make changes or respond to questions label Aug 30, 2025
@bielie993-ui
Copy link
Contributor Author

This is a bit broken with teleports which have multiple possible destinations: image

Also, you should use client.getMenu().createMenuEntry instead of the deprecated versions here and here.

Thanks, i think i broke that yesterday, its fixed now :)

The menu stuff is also fixed now.

@runelite-github-app runelite-github-app bot removed the waiting for author waiting for the pr author to make changes or respond to questions label Aug 30, 2025
aHooder
aHooder previously approved these changes Aug 30, 2025
@bielie993-ui
Copy link
Contributor Author

Removed the keylistener implementation and added a simpler way of detecting the modifier keys.

Copy link
Member

@aHooder aHooder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bielie993-ui bielie993-ui requested a review from aHooder August 30, 2025 11:24
@riktenx riktenx merged commit c1e75a5 into runelite:master Sep 4, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants