Recent Discussions

Developing Minecraft Website

Open in Discord
Unanswered
Dwarf Crocodile posted this in #questions
68 messages
0 views
Dwarf CrocodileOP
Hi
I am developing minecraft website im thinking of using next js for frontend and i haven’t really thought about the backend yet. I was wondering how to automate rank purchase.

For example when user buys a rank which gives certain commands this process is automatically done and given to that user. Instead me manually checking who bought what and manually giving them the rank they bought.

I know a website called tebex does it where you easily set it up but I really dont want to use tebex. Plus I want to use this opportunity to learn about plugins, api etc

Is this process done through lucky perms api? If yes how?
Kromfohrländer
Here's a possible way to get it done
Custom plugin that has a listener for events that your website would send, that runs commands on recipt of those events https://luckperms.net/wiki/Developer-API-Usage
@Dwarf Crocodile Hi
I am developing minecraft website im thinking of using next js for frontend and i haven’t really thought about the backend yet. I was wondering how to automate rank purchase.

For example when user buys a rank which gives certain commands this process is automatically done and given to that user. Instead me manually checking who bought what and manually giving them the rank they bought.

I know a website called tebex does it where you easily set it up but I really dont want to use tebex. Plus I want to use this opportunity to learn about plugins, api etc

Is this process done through lucky perms api? If yes how?
Asian black bear
Hello, you could do it like this:

1. Take payments via Stripe (or whatever processor you desire), require Minecraft username with all purchases
2. When handling successful payments, you could either:
a. run RCON cmds to your Minecraft server (easy)
b. develop a plugin which interacts with your payment system (more work)

If you develop a plugin, it needs to basically check your backend on an interval and apply changes. The best way I could think of doing this is having a database connected to all transactions. The plugin would need to periodically check the database for transactions that haven't been handled, and handle them based on the type of transaction. You could have a boolean like "handled" or something, default false, and have your plugin set it to true once you handle the transaction.
This approach would give you more flexibility, allowing you to run any necessary commands on your server, rather than relying directly on the LP API (which is obviously only for modifying LP groups/permissions).
@Asian black bear Hello, you could do it like this:

1. Take payments via Stripe (or whatever processor you desire), require Minecraft username with all purchases
2. When handling successful payments, you could either:
a. run RCON cmds to your Minecraft server (easy)
b. develop a plugin which interacts with your payment system (more work)

If you develop a plugin, it needs to basically check your backend on an interval and apply changes. The best way I could think of doing this is having a database connected to all transactions. The plugin would need to periodically check the database for transactions that haven't been handled, and handle them based on the type of transaction. You could have a boolean like "handled" or something, default false, and have your plugin set it to true once you handle the transaction.
Dwarf CrocodileOP
Thanks for the reply

main reason im doing this is to learn the techstack as well ps i am a student still
would this appraoch work?:

Frontend - Next.js + TypeScript : User interface for rank selection and payment

Backend - .NET + C# : API for managing payments and communicating with the plugin

Payment Processing - Stripe : Handles secure payments and webhooks

Database - Firebase or PostgreSQL : Stores purchase data and rank status (Still Deciding)

Minecraft Plugin - Java + LuckPerms API : Applies ranks to users based on purchases

Communication Protocol - REST API + HTTP: Facilitates data exchange between components
Asian black bear
please use Pgres > Firebase
Kromfohrländer
why not mongo fr
it'll work great
nosql for this type of thing would be perfect
Asian black bear
why not Pgres lol
Dwarf CrocodileOP
ps i have never worked with databases yet will be fun project
im learing about databases next year
Asian black bear
If you’re still learning, it’s probably counter productive to learn multiple languages at the same time. Why not write the backend in TS too?
@Asian black bear why not Pgres lol
Kromfohrländer
more flexible
Kromfohrländer
use golang :KEKW:
Dwarf CrocodileOP
and i wanted to gain more expiernece in .net
Loading...