Comments (6)
Hey,
thank you for your interest. Did you already try to cancel the InventoryClickEvent?
from protocolize.
Hello,
Yes, i've cancel the InventoryClickEvent, so when i click on the Item in the fake GUI, nothing happen but when i click on item in my personal Inventory. my item dissapeared.
It's only graphical but it's annoying :/
Thanks for your help :D
from protocolize.
Hey,
yeah I know what you mean. I will look forward to fix this in the next releasen. Since this is not a critical bug.
from protocolize.
After some try, it would appear that the fake inventories trigger the opening and click event for each click. I don't know if this could help you. If i find any others informations, i will tell you.
from protocolize.
This will not be implemented.
from protocolize.
I was able to "workaround" this bug by having Bungeecord send a "message" (I'm using Proton, though Plugin message should work as well) whenever the player presses a slot that is not "managed" by, e.g, the inventory opened. The "message" for simplicity just contains the UUID of the player.
Proxy side code (inventory creation code):
Inventory inventory = new Inventory(InventoryType.GENERIC_9X4);
# For `InventoryType.GENERIC_9X4` the `maxSlot` is 35
int maxSlot = 35;
# ...
inventory.onClick(click -> {
if (click.slot() > maxSlot) {
# Send message to server
return;
}
# ...
};
The code on the server side will then when a messages is received from the proxy run:
Player player = getServer().getPlayer(message.getUuid());
player.updateInventory();
It isn't perfect but making it much better than when the items simply disappear.
It is probably a good idea to add a "debounce" / cooldown / queue logic on the server side to only update the inventory every few ticks / seconds and not on every click.
Would be cool if that graphical bug could be fixed somehow without creating a "system" like that.
from protocolize.
Related Issues (20)
- Issues with inventories HOT 2
- Error when a player joined the server with the latest version of Velocity (320) HOT 12
- inventory error HOT 1
- Server crash with pipeline not initialized HOT 4
- Client times out on latest version of Velocity. HOT 5
- Don't know what item 1813 at protocol 763 should be. HOT 1
- Kick on inventory open HOT 7
- Sonar Antibot Incompatibility HOT 5
- FlameCord Support HOT 12
- Unable to read packet ClickWindow HOT 4
- endless pinging of the server HOT 1
- Incompatibility with HAProxy mode(velocity only) for TCPShield HOT 1
- When I shift click on certain items I get an error and kick me out of the server HOT 1
- Explanation of the problem
- I can't load Protocolize on My server (Also Discord Link Isn't working on the wiki) HOT 1
- DecoderException HOT 1
- After I put Protocolize on my Bungeecord server, I can't join HOT 6
- protocolize crush velocity
- [22:51:40 ERROR] [dev.simplix.protocolize.velocity.listener.PlayerListener]: Pipeline is not initialized. This is a bug. Please report. Pipeline handlers = {} HOT 5
- Unable obtain player HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from protocolize.