Question Script wiping player's hotbar

Siliwolf

New member
Jan 14, 2022
5
0
1
This script (attached) is supposed to keep the player's hotbar, armor and offhand. However, it does the opposite and wipes those instead. I've looked over this code many times, and I'm not sure the problem. Thanks for any help!
 
Version Output
This server is running Paper version git-Paper-142 (MC: 1.18.1) (Implementing API version 1.18.1-R0.1-SNAPSHOT) (Git: a736c1a)

Attachments

  • Thing.txt
    6 KB · Views: 5

hyperdefined

New member
Jan 7, 2022
5
1
3
Make sure each item is actually getting set in the array. Also, you shouldn't be using 1 single array that the entire plugin will use. You should create an array for each player and save it into a hashmap.
 
  • Like
Reactions: U9G