Commit 2488c50
committed
chore: finish Java 17 bump in libs and use Message.sendTo in PinCommand
Two small cleanups salvaged from the closed #36 that #40 didn't pick up:
- buildSrc/LibsConfig.kt: bump the libs module's source/target compatibility
and TARGET_JVM_VERSION attribute from 1.8 to 17, matching the v8 Java 17
baseline already applied to the rest of the project in #40.
- PinCommand.java: replace the two remaining
sender.sendMessage(Message.get(...).toString()) calls with
Message.get(...).sendTo(sender) so error messages render through the
MiniMessage pipeline like the other pin messages instead of as the raw
Component.toString() output.1 parent 6d3fa3a commit 2488c50
2 files changed
Lines changed: 6 additions & 6 deletions
File tree
- buildSrc/src/main/kotlin
- common/src/main/java/me/confuser/banmanager/webenhancer/common/commands
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
| 38 | + | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
| 92 | + | |
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
0 commit comments