Create a professional Minecraft SMP plugin named ProSMP with the following features: Main Features Add 20 custom Spears, each with a unique ability. When a player joins the server for the first time, they should receive one random Spear from the 20 available Spears. Display a professional message on the player's screen: "You Received: [Spear Name]" Use colorful, professional formatting. Include the ProSMP server name in the message. Show the notification in chat, action bar, or title format. Spear INVENTORY GUI Create a INVENTORY GUI that contains all 20 Spears. Players can open the INVENTORY GUI and view all Spears. Right-clicking a Spear in the INVENTORY GUI should add it to the player's inventory (if they have permission). Commands /spear give <player> <spear> – Give a specific Spear to a player. /spear INVENTORY GUI – Open the Spear INVENTORY GUI. /spear trade <player> – Send a Spear trade request to another player. /spear trade accept – Accept the trade request and exchange both players' Spears. Anti-Drop & Death Protection Spears should not drop when a player dies. If a player dies while holding a Spear, the Spear should automatically return to their inventory after respawn. However, players should still be able to manually drop their Spear using the normal drop key (Q). Trade System Players can trade Spears with each other using the trade commands. Once the receiving player accepts with /spear trade accept, both players' Spears should be exchanged safely. Configuration Include a config.yml file for: Custom messages Spear names Ability settings INVENTORY GUI settings First-join rewards Trade settings Compatibility Support modern Minecraft versions (Paper/Spigot). Use optimized and professional code. Plugin name: ProSMP.
No files in this session