Skip to content

Commit d84089a

Browse files
committed
Code Cleanup
1 parent ce26b75 commit d84089a

File tree

6 files changed

+40
-41
lines changed

6 files changed

+40
-41
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Accessing the information in villager's brains is useful, but `/data get` has mu
2727
### Permissions:
2828

2929
- villagerinfo.reload: Allows for reloading of the plugin config
30-
- villagerinfo.use: Allows for use of the plugin, getting info from villagers by shift-right-clicking them
30+
- villagerinfo.use: Allows for use of the plugin, getting info from villagers by crouch-right-clicking them
3131
- villagerinfo.toggle: Allows a player to toggle the ability to get the information displayed, on/off
3232

3333
### Commands:

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>ADHDMC</groupId>
88
<artifactId>VillagerInfo</artifactId>
9-
<version>2.5</version>
9+
<version>2.6</version>
1010
<packaging>jar</packaging>
1111

1212
<name>VillagerInfo</name>

src/main/java/adhdmc/villagerinfo/Config/ConfigValidator.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ public static void configValidator() {
4747
soundPitch = 1.5F;
4848
}
4949
ToggleSetting.reloadToggles();
50-
LocaleConfig.getInstance().reloadLocale();
5150
}
5251

5352
public static float getSoundPitch() {

src/main/java/adhdmc/villagerinfo/Config/VIMessage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public enum VIMessage {
1010
NO_PERMISSION("<red>You don't have permission to use this command!"),
1111
NO_COMMAND("<red>No command by that name!"),
1212
CONFIG_RELOADED("<plugin_prefix> <gold>VillagerInfo Config Reloaded!"),
13-
HELP_MAIN("<plugin_prefix> <#4dd5ff> • How to use Villager Info\n<grey>Shift-right-click a villager while toggle is on to have a villager's information displayed"),
13+
HELP_MAIN("<plugin_prefix> <#4dd5ff> • How to use Villager Info\n<grey>Crouch-right-click a villager while toggle is on to have a villager's information displayed"),
1414
HELP_TOGGLE("<#4dd5ff> • /vill toggle\n<grey>Toggles the ability to receive villager information on or off."),
1515
HELP_RELOAD("<#4dd5ff> • /vill reload\n<grey>Reloads the plugin, applies config values"),
1616
NOT_A_PLAYER("<plugin_prefix> <red>Sorry, you must be a player to use this command"),

src/main/resources/locale.yml

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
1-
PREFIX: "<#3256a8><bold>[</bold><#4dd5ff>Villager Info<#3256a8><bold>]<reset>"
2-
TOGGLE_ON: "<green> Villager Info Toggled <u>ON"
3-
TOGGLE_OFF: "<red> Villager Info Toggled <u>OFF"
4-
NO_PERMISSION: "<red>You don't have permission to use this command!"
5-
NO_COMMAND: "<red>No command by that name!"
6-
CONFIG_RELOADED: "<gold>VillagerInfo Config Reloaded!"
7-
HELP_MAIN: "<#4dd5ff> • How to use Villager Info\n<grey>Shift-right-click a villager while toggle is on to have a villager's information displayed"
8-
HELP_TOGGLE: "<#4dd5ff> • /vill toggle\n<grey>Toggles the ability to receive villager information on or off."
9-
HELP_RELOAD: "<#4dd5ff> • /vill reload\n<grey>Reloads the plugin, applies config values"
10-
NOT_A_PLAYER: "<red>Sorry, you must be a player to use this command"
11-
PURPUR_LOBOTOMIZED: "<#05bff7><hover:show_text:'<aqua>Lobotomized: <grey><state>'>[<#c4fff7>Lobotomized</#c4fff7>]"
12-
ZOMBIE_VILLAGER_CONVERSION_TIME: "<#05bff7><hover:show_text:'<aqua>Conversion Time: <grey><time>'>[<#c4fff7>Time Until Converted</#c4fff7>]</hover>"
13-
VILLAGER_AGE: "<#05bff7><hover:show_text:'<aqua>Childhood Left: <grey><age>'>[<#c4fff7>Time Until Adult</#c4fff7>]"
14-
VILLAGER_PROFESSION: "<#05bff7><hover:show_text:'<aqua>Profession: <grey><profession>'>[<#c4fff7>Profession</#c4fff7>]"
15-
VILLAGER_HEALTH: "<#05bff7><hover:show_text:'<aqua>Health: <grey><current><aqua>/</aqua><total>'>[<#c4fff7>Health</#c4fff7>]"
16-
VILLAGER_JOBSITE: "<#05bff7><hover:show_text:'<aqua>POI: <grey><jobsitelocation>'>[<#c4fff7>Job Site</#c4fff7>]"
17-
VILLAGER_LAST_WORKED: "<#05bff7><hover:show_text:'<aqua>Last Worked: <grey><worktime>'>[<#c4fff7>Last Worked At Workstation</#c4fff7>]"
18-
VILLAGER_RESTOCKS: "<#05bff7><hover:show_text:'<aqua>Restocks: <grey><restockcount>'>[<#c4fff7>Restocks Today</#c4fff7>]"
19-
VILLAGER_HOME: "<#05bff7><hover:show_text:'<aqua>Bed: <grey><homelocation>'>[<#c4fff7>Home</#c4fff7>]"
20-
VILLAGER_SLEPT: "<#05bff7><hover:show_text:'<aqua>Last Slept: <grey><sleeptime>'>[<#c4fff7>Last Slept</#c4fff7>]"
21-
VILLAGER_INVENTORY: "<#05bff7><hover:show_text:'<aqua>Inventory: <grey><contents>'>[<#c4fff7>Villager Inventory</#c4fff7>]"
22-
INVENTORY_CONTENTS: "\n • <item> (<amount>)"
23-
PLAYER_REPUTATION: "<#05bff7><hover:show_text:'<#05bff7>[<#c4fff7>Player Reputation</#c4fff7>]'><reputation>"
24-
TRUE: "<grey>True"
25-
FALSE: "<grey>False"
26-
NONE: "<grey>None"
27-
NEVER: "<grey>Never"
28-
EMPTY: "\n<grey>Empty"
29-
NO_INFORMATION: "<grey>No information to display on this villager"
30-
HOUR: "h, "
31-
MINUTE: "m, "
32-
SECOND: "s"
33-
AGO: " Ago"
34-
LOCATION_X: "<int>x, "
35-
LOCATION_Y: "<int>y, "
36-
LOCATION_Z: "<int>z"
1+
"PLUGIN_PREFIX": "<#3256a8><bold>[</bold><#4dd5ff>Villager Info<#3256a8><bold>]<reset>"
2+
"TOGGLE_ON": "<green> Villager Info Toggled <u>ON"
3+
"TOGGLE_OFF": "<red> Villager Info Toggled <u>OFF"
4+
"NO_PERMISSION": "<red>You don't have permission to use this command!"
5+
"NO_COMMAND": "<red>No command by that name!"
6+
"CONFIG_RELOADED": "<gold>VillagerInfo Config Reloaded!"
7+
"HELP_MAIN": "<#4dd5ff> • How to use Villager Info\n<grey>Crouch-right-click a villager while toggle is on to have a villager's information displayed"
8+
"HELP_TOGGLE": "<#4dd5ff> • /vill toggle\n<grey>Toggles the ability to receive villager information on or off."
9+
"HELP_RELOAD": "<#4dd5ff> • /vill reload\n<grey>Reloads the plugin, applies config values"
10+
"NOT_A_PLAYER": "<red>Sorry, you must be a player to use this command"
11+
"PURPUR_LOBOTOMIZED": "<#05bff7><hover:show_text:'<aqua>Lobotomized: <grey><state>'>[<#c4fff7>Lobotomized</#c4fff7>]"
12+
"ZOMBIE_VILLAGER_CONVERSION_TIME": "<#05bff7><hover:show_text:'<aqua>Conversion Time: <grey><time>'>[<#c4fff7>Time Until Converted</#c4fff7>]</hover>"
13+
"VILLAGER_AGE": "<#05bff7><hover:show_text:'<aqua>Childhood Left: <grey><age>'>[<#c4fff7>Time Until Adult</#c4fff7>]"
14+
"VILLAGER_PROFESSION": "<#05bff7><hover:show_text:'<aqua>Profession: <grey><profession>'>[<#c4fff7>Profession</#c4fff7>]"
15+
"VILLAGER_HEALTH": "<#05bff7><hover:show_text:'<aqua>Health: <grey><current><aqua>/</aqua><total>'>[<#c4fff7>Health</#c4fff7>]"
16+
"VILLAGER_JOBSITE": "<#05bff7><hover:show_text:'<aqua>POI: <grey><jobsitelocation>'>[<#c4fff7>Job Site</#c4fff7>]"
17+
"VILLAGER_LAST_WORKED": "<#05bff7><hover:show_text:'<aqua>Last Worked: <grey><worktime>'>[<#c4fff7>Last Worked At Workstation</#c4fff7>]"
18+
"VILLAGER_RESTOCKS": "<#05bff7><hover:show_text:'<aqua>Restocks: <grey><restockcount>'>[<#c4fff7>Restocks Today</#c4fff7>]"
19+
"VILLAGER_HOME": "<#05bff7><hover:show_text:'<aqua>Bed: <grey><homelocation>'>[<#c4fff7>Home</#c4fff7>]"
20+
"VILLAGER_SLEPT": "<#05bff7><hover:show_text:'<aqua>Last Slept: <grey><sleeptime>'>[<#c4fff7>Last Slept</#c4fff7>]"
21+
"VILLAGER_INVENTORY": "<#05bff7><hover:show_text:'<aqua>Inventory: <grey><contents>'>[<#c4fff7>Villager Inventory</#c4fff7>]"
22+
"INVENTORY_CONTENTS": "\n • <item> (<amount>)"
23+
"PLAYER_REPUTATION": "<#05bff7><hover:show_text:'<#05bff7>[<#c4fff7>Player Reputation</#c4fff7>]'><reputation>"
24+
"TRUE": "<grey>True"
25+
"FALSE": "<grey>False"
26+
"NONE": "<grey>None"
27+
"NEVER": "<grey>Never"
28+
"EMPTY": "\n<grey>Empty"
29+
"NO_INFORMATION": "<grey>No information to display on this villager"
30+
"HOUR": "h, "
31+
"MINUTE": "m, "
32+
"SECOND": "s"
33+
"AGO": " Ago"
34+
"LOCATION_X": "<int>x, "
35+
"LOCATION_Y": "<int>y, "
36+
"LOCATION_Z": "<int>z"

src/main/resources/plugin.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ permissions:
1616
description: reload VillagerInfo config
1717
default: op
1818
villagerinfo.use:
19-
description: get the villager information by shift-right-clicking on a villager
19+
description: get the villager information by crouch-right-clicking on a villager
2020
default: op
2121
villagerinfo.toggle:
2222
description: allows toggling functionality on/off

0 commit comments

Comments
 (0)