Skip to content

Commit 02c5dde

Browse files
committed
Update README and Config, Fix Version
Absorption prefix keeps doing warning spam cause Placeholder API cannot parse what is going on without the appropriate expansion. It's still in the config despite being commented out for the sake of keeping the example. Dropped Version from 2.0.0 cause I bumped it too early thinking I would need to update other stuff, but the API version does not need to be updated so whatever. This update just adds MYSQL support so the actual version should be 1.3.0. Tested on 1.20.4, works.
1 parent 2227f89 commit 02c5dde

File tree

3 files changed

+24
-17
lines changed

3 files changed

+24
-17
lines changed

Diff for: README.md

+13-6
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@ A plugin aiming to allow for simple player-selected prefixes that can be used in
5050

5151
```yml
5252
saving-type: "file"
53+
mysql:
54+
ip: "localhost:3306"
55+
name: prefixes
56+
user: username1
57+
pass: badpassword!
58+
5359
default-prefix: "<white>[<gray>Player</gray>]</white> "
5460
prefix-menu-name: "<bold>Prefix Menu</bold>"
5561

@@ -63,12 +69,13 @@ header:
6369
6470
## Configuration Settings
6571
66-
| Setting | Description | Valid Values |
67-
|------------------|---------------------------------------------|---------------|
68-
| saving-type | What type of saving system should this use? | `PDC`, `FILE` |
69-
| default-prefix | Fallback prefix, supports Placeholders. | String |
70-
| prefix-menu-name | The name of the prefix menu. | String |
71-
| header | Section for Header Item Configuration | *See Below* |
72+
| Setting | Description | Valid Values |
73+
|------------------|---------------------------------------------|---------------------------|
74+
| saving-type | What type of saving system should this use? | `PDC`, `FILE`, `MYSQL` |
75+
| mysql | MySQL Connection Settings | Valid SQL Connection Info |
76+
| default-prefix | Fallback prefix, supports Placeholders. | String |
77+
| prefix-menu-name | The name of the prefix menu. | String |
78+
| header | Section for Header Item Configuration | *See Below* |
7279

7380
### Saving Types
7481

Diff for: pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>Simplexity</groupId>
88
<artifactId>SimplePrefixes</artifactId>
9-
<version>2.0.0</version>
9+
<version>1.3.0</version>
1010
<packaging>jar</packaging>
1111

1212
<name>SimplePrefixes</name>

Diff for: src/main/resources/prefixes.yml

+10-10
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33
# ---
44
# For information on how to use this config, see the readme: https://github.com/ADHDMC/SimplePrefixes
55
#####
6-
absorption:
7-
display-name: "<yellow>Absorption"
8-
description:
9-
- "<yellow><bold>FUN FACT:"
10-
- "<white> This was a prefix I used during testing!"
11-
- "<white> This also supports PlaceholderAPI!"
12-
prefix: "<white>[<yellow>Absorption: %player_absorption%</yellow>]</white>"
13-
verify-always: true
14-
requirements:
15-
- "compare_int %player_absorption% > 0"
6+
#absorption:
7+
# display-name: "<yellow>Absorption"
8+
# description:
9+
# - "<yellow><bold>FUN FACT:"
10+
# - "<white> This was a prefix I used during testing!"
11+
# - "<white> This also supports PlaceholderAPI!"
12+
# prefix: "<white>[<yellow>Absorption: %player_absorption%</yellow>]</white>"
13+
# verify-always: true
14+
# requirements:
15+
# - "compare_int %player_absorption% > 0"
1616
permitted:
1717
display-name: "<green>The Permitted"
1818
description:

0 commit comments

Comments
 (0)