Skip to content

Commit

Permalink
Bump 0.2.0 (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
Netherwhal authored Mar 9, 2024
1 parent 764367e commit 56bcfa9
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 19 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ plugins {
}

group 'net.simplyvanilla'
version '0.1.0'
version '0.2.0'

java {
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public void createTab(Player player) {
}

private String getTeamName(Player onlinePlayer) {
List<Map<String, Object>> tmp = (List<Map<String, Object>>) this.plugin.getConfig().getList("sortings");
List<Map<String, Object>> tmp = (List<Map<String, Object>>) this.plugin.getConfig().getList("sorting");

int sortingId = 0;
if (tmp != null)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ private void updateTablist(ScheduledTask task) {

private void updateTablistForPlayer(Player player) {

TagResolver tpsResolver = resolver("simplyrank_tps", inserting(miniMessage().deserialize(this.getTps())));
TagResolver tpsResolver = resolver("tps", inserting(miniMessage().deserialize(this.getTps())));

TagResolver resolvers = resolver(
getAudienceGlobalPlaceholders(player),
Expand Down
25 changes: 9 additions & 16 deletions src/main/resources/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,42 +2,35 @@

tab:
header:
- '<blue><bold><italic>Simply</italic></bold></blue>'
- ' <blue><bold><italic>Vanilla</italic></bold></blue>'
- 'My Super Cool Server'
- ''
- 'Server: <bold><white><mc-version> </white><red>|</red></bold><reset> Players: <bold><white><online-count> </white><red>|</red></bold><reset> TPS: <bold><white><simplyrank_tps></white></bold>'
- 'Server: <bold><white><mc-version> </white><red>|</red></bold><reset> Players: <bold><white><online-count> </white><red>|</red></bold><reset> TPS: <bold><white><tps></white></bold>'
- ''
footer:
- ''
- '<white>Discord:</white><reset> <gray>/discord</gray>'
- '<white>Commands:</white><reset> <gray>/help</gray>'
- ''
- '<green>www.simplyvanilla.net - No Hacking Anarchy</green>'
- '<green>YOUR SERVER</green>'
tps:
'20': '<green>20.0*</green>'
'20': '<green>20.0</green>'
'19': '<green>20.0*</green>'
'18': '<green>20.0*</green>'
'*': '<red>%value%</red>'

sortings:
sorting:
- type: 'index'
placeholder: '<simplyrank_primary_rank>'
placeholder: '<primary_rank>'
values:
- Owner
- Admin
- Mod
- JrMod
- Creator
- OG
- Donator
- DonatorNitro
- DonatorVoter
- default
- Designer

- type: 'alphabetical'
placeholder: '<player_displayname>'

group-prefix: '<simplyrank_prefix> <green>'
group-prefix: ''
group-suffix: ''
group-player-color: '<simplyrank_code_color>'
group-player-color: ''
tab-displayname: '<player_displayname>'

0 comments on commit 56bcfa9

Please sign in to comment.