JustRohams/GiftCode-PM5 ? reverse-engineered prompt

Reverse engineered prompt

Build me a PocketMine MP plugin for API 5 that lets server staff create gift codes for money and players redeem them in game.

I want a simple command for admins to make a code with a chosen amount, then a player can type the code and get the money from EconomyAPI. The code should only work once and then be used up. Please make it save codes so they still work after a restart, and put the messages in a config file so I can change the text easily. Use clear permissions so only trusted users can create codes, but anyone can redeem them.

It should support a main command and a shorter alias for creating codes, and the redeem command should be easy for players to use. Keep the plugin clean and lightweight, and if you need to check anything about current PocketMine or EconomyAPI behavior, look up the latest docs online.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab