A config database system

Status
This thread has been locked.

Withering

Banned
Feedback score
0
Posts
2
Reactions
1
Resources
0
Hey, so I'm trying to make a reputation system as a plugin, where you can do something like /reputation give <username> positive, and in the config, it will create a section for them with all of their reputation, (positive, neutral, negative) their username, and their UUID.

1. How would I make this config database
2. How would I add a reputation to their stats?

Heres a basic theme of what it would look like:

Code:
notch:
  uuid: <uuid>
  positive: 5
  neutral: 0
  negative: 2
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

JohnKZ

Premium
Feedback score
27
Posts
123
Reactions
97
Resources
0
Hey, so I'm trying to make a reputation system as a plugin, where you can do something like /reputation give <username> positive, and in the config, it will create a section for them with all of their reputation, (positive, neutral, negative) their username, and their UUID.

1. How would I make this config database
2. How would I add a reputation to their stats?

Heres a basic theme of what it would look like:

Code:
notch:
  uuid: <uuid>
  positive: 5
  neutral: 0
  negative: 2

Do you mean by database you'd like it to be stored in MySQL?
And by stats, are you talking about a command to see their reputation given to them?
 

Withering

Banned
Feedback score
0
Posts
2
Reactions
1
Resources
0
Do you mean by database you'd like it to be stored in MySQL?
And by stats, are you talking about a command to see their reputation given to them?
No not SQL.
Yes, like you can do /reputation JohnKZ and it will show your reputation, and you can also do like /rep give JohnKZ positive, and it will add one to their "positive: " part in the config
 
Banned forever. Reason: Ban Evading (HarleySwtfus, https://builtbybit.com/members/harleyswtfus.56515/)

JohnKZ

Premium
Feedback score
27
Posts
123
Reactions
97
Resources
0
No not SQL.
Yes, like you can do /reputation JohnKZ and it will show your reputation, and you can also do like /rep give JohnKZ positive, and it will add one to their "positive: " part in the config

EDIT: I'll PM you
 
Last edited:
Status
This thread has been locked.
Top