Skip to content

Commit

Permalink
Update README and Config, Fix Version
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Peashooter101 committed May 24, 2024
1 parent 2227f89 commit 02c5dde
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 17 deletions.
19 changes: 13 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ A plugin aiming to allow for simple player-selected prefixes that can be used in

```yml
saving-type: "file"
mysql:
ip: "localhost:3306"
name: prefixes
user: username1
pass: badpassword!

default-prefix: "<white>[<gray>Player</gray>]</white> "
prefix-menu-name: "<bold>Prefix Menu</bold>"

Expand All @@ -63,12 +69,13 @@ header:
## Configuration Settings
| Setting | Description | Valid Values |
|------------------|---------------------------------------------|---------------|
| saving-type | What type of saving system should this use? | `PDC`, `FILE` |
| default-prefix | Fallback prefix, supports Placeholders. | String |
| prefix-menu-name | The name of the prefix menu. | String |
| header | Section for Header Item Configuration | *See Below* |
| Setting | Description | Valid Values |
|------------------|---------------------------------------------|---------------------------|
| saving-type | What type of saving system should this use? | `PDC`, `FILE`, `MYSQL` |
| mysql | MySQL Connection Settings | Valid SQL Connection Info |
| default-prefix | Fallback prefix, supports Placeholders. | String |
| prefix-menu-name | The name of the prefix menu. | String |
| header | Section for Header Item Configuration | *See Below* |

### Saving Types

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>Simplexity</groupId>
<artifactId>SimplePrefixes</artifactId>
<version>2.0.0</version>
<version>1.3.0</version>
<packaging>jar</packaging>

<name>SimplePrefixes</name>
Expand Down
20 changes: 10 additions & 10 deletions src/main/resources/prefixes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
# ---
# For information on how to use this config, see the readme: https://github.com/ADHDMC/SimplePrefixes
#####
absorption:
display-name: "<yellow>Absorption"
description:
- "<yellow><bold>FUN FACT:"
- "<white> This was a prefix I used during testing!"
- "<white> This also supports PlaceholderAPI!"
prefix: "<white>[<yellow>Absorption: %player_absorption%</yellow>]</white>"
verify-always: true
requirements:
- "compare_int %player_absorption% > 0"
#absorption:
# display-name: "<yellow>Absorption"
# description:
# - "<yellow><bold>FUN FACT:"
# - "<white> This was a prefix I used during testing!"
# - "<white> This also supports PlaceholderAPI!"
# prefix: "<white>[<yellow>Absorption: %player_absorption%</yellow>]</white>"
# verify-always: true
# requirements:
# - "compare_int %player_absorption% > 0"
permitted:
display-name: "<green>The Permitted"
description:
Expand Down

0 comments on commit 02c5dde

Please sign in to comment.