Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Require keeping scroll in your hand during teleport #26

Closed
wants to merge 1 commit into from

Conversation

FM-96
Copy link
Contributor

@FM-96 FM-96 commented Oct 3, 2022

Players now need to continuously hold the Scroll of Warp in their hands during the teleport delay. Putting the Scroll away will cancel the teleport.

This fixes #21. I went with this option for dealing with the issue because it was the easiest for me to implement, and it also seemed to make a lot of sense.

While this does change the plugin's behaviour somewhat, players can still move the Scroll into their offhand after activating it and then use their mainhand for e.g. building or fighting off threats while the teleport charges, so it feels like a reasonable compromise.

@BLuFeNiX
Copy link
Owner

BLuFeNiX commented Oct 8, 2022

@FM-96 Thanks for this contribution. I'll have to think about how this should work. My gut reaction is that the scroll should be removed from the player's inventory before the teleport starts, and then can be re-added if the teleport fails. I may feel differently about the solution after some thinking, so I'll leave this open for now.

@FM-96
Copy link
Contributor Author

FM-96 commented Oct 8, 2022

That seems unnecessarily complicated to me, to be honest.

(And also opens up other issues, like what if the player picks up items after starting the teleport and has no more space in their inventory when you want to re-add the scroll?)

@BLuFeNiX
Copy link
Owner

BLuFeNiX commented Oct 8, 2022

@FM-96 then the scroll will fall onto the ground, just like any item would if you tried to /give it to a player with full inventory.

@FM-96
Copy link
Contributor Author

FM-96 commented Jan 4, 2023

Hey @BLuFeNiX, it's been a while; I wanted to ask if there's any update on this?

Also, if I changed this so there was a config option for requiring you to hold the scroll the entire time, would you merge it then?

That way, whenever you get around to it, you could still change it to work like you described if the setting is turned off, but we'd also have this way as an option (because I think it works fairly well, and I also still think the limitation makes sense).

@BLuFeNiX
Copy link
Owner

BLuFeNiX commented Jan 9, 2023

@FM-96 I still think having the scroll removed from the inventory prior to TP is the right way to mitigate this, however, if you make holding the scroll configurable and leave the current behavior as the default setting, I will merge the changes.

@BLuFeNiX
Copy link
Owner

BLuFeNiX commented Oct 3, 2024

closing due to lack of discussion. Feel free to open a new PR if this still interests anyone.

@BLuFeNiX BLuFeNiX closed this Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Scroll of Warp not consumed if it is dropped or its inventory slot changes
2 participants