
ReSilence Custom items
Buatkan plugin sistem trade player contoh player 1 menambahkan item dan accept dan player 2 menambahkan item dan accept dan keluar tombol di tengah inventory...
00—paperServer1.21.10mod
- Added a two-player trade system with the
/trade <namaPemain>command. Sending the command to another player creates an invite; they accept by running the same command back within 30 seconds. - Trade UI: 6-row inventory with glass borders/dividers, player name accents on the top row, dedicated offer slots on the left (inviter) and right (invitee), green/red ready buttons, and a barrier button centered in the middle to cancel.
- Interaction rules: players can only move items in their own offer slots; decoration, partner slots, and divider glass are locked. Shift-click from the player inventory is blocked, double-clicks and drop-key actions in the UI are disabled, and any item movement resets both ready states.
- Completion and safety: when both players click ready, items swap sides; any overflow is dropped at the player’s feet. Cancelling or closing returns items to their owners. Successful trades send the chat message “Trade Sudah selesai” to both players.
- Metadata updated to
ReSilenceCustomItemswith main classcom.resilencecustomitems.ReSilenceCustomItemsPluginand the trade command registered inplugin.yml.
Server Validation
✅ Server validation passed - The mod was tested on a real Minecraft server and loaded successfully.