Commit 34d961f
authored
Code Polish v1 (#2103)
* Remove Spigot platform modules and related dependencies
This commit removes all Spigot platform-specific modules, classes, and build configurations, including `AbstractSpigotPlatform`, `NbtApiInitializer`, and corresponding project configuration files (POMs). This cleanup helps streamline the project and eliminates dependencies on Spigot and NBT-API.
* Bumped Java version usage to 21.
* Remove deprecated economy-related classes and implementations.
This commit removes obsolete economy-related classes, interfaces, and implementations. The code cleanup includes `AbstractEconomy`, `Benefit`, `DepositEconomyOperation`, and economy implementations like `Economy_Vault` and `Economy_VaultUnlocked`. These were either redundant or replaced by new approaches.
* Refactor economy package structure.
Renamed and updated references for the "economyrevamp" package to "economy" for better clarity and consistency across the project. This includes file paths, imports, and related classes. No functional changes were made.
* Remove deprecated classes and methods from the codebase.
This commit eliminates several deprecated classes and methods across various packages, including ItemExpression, ShopModerator, and VaultPermissionProvider. Redundant functionality has been consolidated or replaced with newer implementations, improving maintainability and reducing legacy code bloat.
* Fix typo in method documentation in Shop.java
Corrected "attacked" to "attached" in the JavaDoc of the `checkShop` method to ensure the comment accurately describes the method's purpose. This improves code clarity and reduces potential confusion for developers.
* Update changelog.
* Update dependencies and adjust logging and API methods
Updated several dependencies, including updating commons-lang3 to 3.18.0, and adjusted dependency scopes and exclusions for better modularity. Refactored the `getPlayerLocale` method to use `QUser` instead of `UUID`. Minor logging implementation improvements were also applied.
* Switch to `CommonUtil` and refactor method calls for consistency.
Replaced usages of `StringUtils` with `CommonUtil` and updated methods for improved readability and modernized coding conventions. Bumped version in relevant `pom.xml` files to ensure compatibility, streamlined code paths using `getFirst()` replacements, and adjusted dependency scopes for better package management.
* Refactor type declarations and optimize utility methods
Replaced `EnumSet` and `EnumMap` with `HashSet` and `HashMap` for better maintainability and flexibility. Streamlined `instanceof` type casts by adding `final` for clarity and potential performance benefits. Removed deprecated or redundant methods and added logical safeguards for more robust behavior.
* Add a config to enable/disable enchants for display items, add a workaround for PacketEvents not supporting custom enchants for itemstack conversion.
* Revert distribution changes since updated changes don't seem to work when implemented according to the CodeMC docs.1 parent 253d5e6 commit 34d961f
212 files changed
Lines changed: 3792 additions & 6702 deletions
File tree
- .changelog
- addon
- bluemap
- discordsrv
- src/main/java/com/ghostchu/quickshop/addon/discordsrv
- command
- database
- message
- parser
- discount
- src/main/java/com/ghostchu/quickshop/addon/discount
- command
- listener
- displaycontrol
- src/main/java/com/ghostchu/quickshop/addon/displaycontrol/command
- dynmap
- limited
- src/main/java/com/ghostchu/quickshop/addon/limited
- command
- list
- src/main/java/com/ghostchu/quickshop/addon/list/command
- plan
- src/main/java/com/ghostchu/quickshop/addon/plan
- util
- reremake-migrator
- src/main/java/com/ghostchu/quickshop/addon/reremakemigrator
- command
- migratecomponent
- shopitemonly
- compatibility
- advancedregionmarket
- angelchest
- bentobox
- bungeecord-geyser
- bungeecord
- chestprotect
- clearlag
- common
- dominion
- ecoenchants
- elitemobs
- fabledskyblock
- griefprevention
- husktowns
- iridiumskyblock
- itemsadder
- lands
- matcherplus
- openinv
- plotsquared
- reforges
- residence
- slimefun
- superiorskyblock
- towny
- velocity
- voidchest
- worldedit
- worldguard
- platform
- quickshop-platform-interface
- quickshop-platform-paper
- quickshop-platform-spigot-abstract
- src/main/java/com/ghostchu/quickshop/platform/spigot
- quickshop-platform-spigot-v1_20_R1
- src/main/java/com/ghostchu/quickshop/platform/spigot/v1_20_1
- quickshop-platform-spigot-v1_20_R2
- src/main/java/com/ghostchu/quickshop/platform/spigot/v1_20_2
- quickshop-platform-spigot-v1_20_R3
- src/main/java/com/ghostchu/quickshop/platform/spigot/v1_20_3
- quickshop-platform-spigot-v1_20_R4
- src/main/java/com/ghostchu/quickshop/platform/spigot/v1_20_4
- quickshop-platform-spigot-v1_21_R1
- src/main/java/com/ghostchu/quickshop/platform/spigot/v1_21_1
- quickshop-platform-spigot-v1_21_R2
- src/main/java/com/ghostchu/quickshop/platform/spigot/v1_21_1
- quickshop-platform-spigot-v1_21_R3
- src/main/java/com/ghostchu/quickshop/platform/spigot/v1_21_3
- quickshop-platform-spigot-v1_21_R4
- src/main/java/com/ghostchu/quickshop/platform/spigot/v1_21_4
- quickshop-platform-spigot-v1_21_R5
- src/main/java/com/ghostchu/quickshop/platform/spigot/v1_21_5
- quickshop-api
- src/main/java/com/ghostchu/quickshop/api
- command
- database
- economy
- benefit
- operation
- transaction
- event
- economy
- settings/type/benefit
- shop
- quickshop-bukkit
- src/main
- java/com/ghostchu/quickshop
- command/subcommand
- silent
- database
- economy
- impl
- provider
- transaction
- eventmanager
- listener
- papi
- impl
- permission/impl
- registry/builtin/itemexpression
- handlers
- shop
- cache
- display/virtual
- packet
- packetevents
- protocollib
- util
- config
- economyformatter
- envcheck
- logger
- logging/container
- matcher/item
- metric/collect
- paste
- item
- util
- watcher
- resources
- quickshop-common
- src/main/java/com/ghostchu/quickshop/common/util
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | 10 | | |
13 | 11 | | |
14 | 12 | | |
15 | 13 | | |
16 | 14 | | |
17 | 15 | | |
18 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
20 | | - | |
| 22 | + | |
| 23 | + | |
21 | 24 | | |
22 | 25 | | |
23 | 26 | | |
| |||
30 | 33 | | |
31 | 34 | | |
32 | 35 | | |
| 36 | + | |
33 | 37 | | |
34 | 38 | | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
35 | 42 | | |
36 | 43 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | 60 | | |
67 | 61 | | |
68 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
| |||
Lines changed: 1 addition & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | 97 | | |
104 | 98 | | |
105 | 99 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
Lines changed: 7 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
| |||
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
33 | | - | |
| 32 | + | |
34 | 33 | | |
35 | 34 | | |
36 | 35 | | |
| |||
50 | 49 | | |
51 | 50 | | |
52 | 51 | | |
53 | | - | |
| 52 | + | |
54 | 53 | | |
55 | 54 | | |
56 | 55 | | |
57 | | - | |
| 56 | + | |
58 | 57 | | |
59 | 58 | | |
60 | 59 | | |
| |||
77 | 76 | | |
78 | 77 | | |
79 | 78 | | |
80 | | - | |
81 | | - | |
| 79 | + | |
| 80 | + | |
82 | 81 | | |
83 | 82 | | |
84 | 83 | | |
85 | | - | |
| 84 | + | |
86 | 85 | | |
87 | 86 | | |
88 | 87 | | |
| |||
109 | 108 | | |
110 | 109 | | |
111 | 110 | | |
112 | | - | |
| 111 | + | |
113 | 112 | | |
114 | 113 | | |
115 | 114 | | |
| |||
addon/discordsrv/src/main/java/com/ghostchu/quickshop/addon/discordsrv/message/MessageManager.java
Lines changed: 7 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | | - | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
| 79 | + | |
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
| 114 | + | |
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
| 119 | + | |
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | | - | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
Lines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
| |||
50 | 49 | | |
51 | 50 | | |
52 | 51 | | |
53 | | - | |
| 52 | + | |
54 | 53 | | |
55 | 54 | | |
56 | 55 | | |
| |||
62 | 61 | | |
63 | 62 | | |
64 | 63 | | |
65 | | - | |
| 64 | + | |
66 | 65 | | |
67 | 66 | | |
68 | | - | |
| 67 | + | |
69 | 68 | | |
70 | 69 | | |
71 | 70 | | |
| |||
78 | 77 | | |
79 | 78 | | |
80 | 79 | | |
81 | | - | |
| 80 | + | |
82 | 81 | | |
83 | 82 | | |
84 | 83 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
| |||
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
62 | | - | |
| 63 | + | |
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
67 | | - | |
| 68 | + | |
68 | 69 | | |
69 | 70 | | |
0 commit comments