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

Shift bugs. #4

Open
Xbozon opened this issue Jul 31, 2013 · 3 comments
Open

Shift bugs. #4

Xbozon opened this issue Jul 31, 2013 · 3 comments

Comments

@Xbozon
Copy link

Xbozon commented Jul 31, 2013

Hello, another bug-report from me.
When adding noitem.nohave or noitem.nohold permissions, players still can equip the items by using Shift button:

  1. Select any free slot in your hotbar.
    http://ru-craft.net/downloads/1.png
  2. Open the chest or inventory with the banned item.
    http://ru-craft.net/downloads/2.png
    http://ru-craft.net/downloads/3.png
  3. Click on the item while holding shift, and it will be equipped.
    http://ru-craft.net/downloads/4.png

This negates all the nohold permissions.

@AnthonyAMC
Copy link

This is a long standing known exploit. I'd like to find a fix for it.

@Xbozon
Copy link
Author

Xbozon commented Aug 3, 2013

Maybe disable possibility of using shift in the inventory?
Add an option to config file or permission.

@Xbozon
Copy link
Author

Xbozon commented Aug 7, 2013

Hey, I fix this:

In file Listeners.java add:
add http://pastebin.com/b5WsyTX4
And in file Handlers.java
add http://pastebin.com/m8vGWbmz

It's a quick fix, you can improve it.
I delete items, because I don't know how to move them.

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

No branches or pull requests

2 participants