Officially supported methods of batch modification of the inventory #4870
DanielWillett
started this conversation in
Ideas
Replies: 1 comment
-
It is a nice idea! It looks like vanilla uses |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm basically looking for a way to improve the performance of 'kit plugins'.
A while back I had issues with the performance of equipping a lot of players at once with a kit. When the next game started every player would go to get a kit at once and the server would become very laggy for a little while. I was able to sort of fix this by using the SendInventory RPC to send all the items at once but its still not possible to clear the inventory all at once because the player's inventory UI won't update without explicitly sending the item removal.
Also the
Items.clear
method doesn't update thebool[,] slots
field inItems
so it leaves behind ghost items.What I'm looking for is something like this:
Beta Was this translation helpful? Give feedback.
All reactions