Skip to content

Commit 417ea1c

Browse files
authored
GH-119 Slight GUI modifications
1 parent 648b4b6 commit 417ea1c

File tree

3 files changed

+30
-28
lines changed

3 files changed

+30
-28
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ tasks {
160160
"org.bstats",
161161
"org.json",
162162
"org.postgresql",
163-
// "net.dzikoysk",
163+
"net.dzikoysk",
164164
"net.kyori",
165165
"io.papermc",
166166
"io.sentry",

src/main/java/com/eternalcode/parcellockers/configuration/implementation/ConfigItem.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public GuiItem toGuiItem(GuiAction<InventoryClickEvent> action) {
3939
.lore(this.lore.stream().map(element -> AdventureUtil.resetItalic(MINI_MESSAGE.deserialize(element))).toList())
4040
.flags(ItemFlag.HIDE_ATTRIBUTES)
4141
.flags(ItemFlag.HIDE_ENCHANTS)
42+
.flags(ItemFlag.HIDE_ADDITIONAL_TOOLTIP)
4243
.glow(this.glow)
4344
.asGuiItem(action);
4445
}
@@ -49,6 +50,7 @@ public GuiItem toGuiItem(GuiAction<InventoryClickEvent> action) {
4950
.lore(this.lore.stream().map(element -> AdventureUtil.resetItalic(MINI_MESSAGE.deserialize(element))).toList())
5051
.flags(ItemFlag.HIDE_ATTRIBUTES)
5152
.flags(ItemFlag.HIDE_ENCHANTS)
53+
.flags(ItemFlag.HIDE_ADDITIONAL_TOOLTIP)
5254
.glow(this.glow);
5355
}
5456

src/main/java/com/eternalcode/parcellockers/configuration/implementation/PluginConfiguration.java

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public static class Messages {
9494
public String failedToDeleteParcel = "&4✘ &cAn error occurred while deleting the parcel.";
9595
public String failedToCreateParcelLocker = "&4✘ &cCould not create the parcel locker.";
9696
public String parcelLockerSuccessfullyCreated = "&7» &aParcel locker created successfully.";
97-
public String enterDescriptionPrompt = "&6 &eEnter a description for the parcel locker:";
97+
public String enterDescriptionPrompt = "&6 &eEnter a description for the parcel locker:";
9898
public String cannotBreakParcelLocker = "&4✘ &cYou have no permission to break the parcel locker.";
9999
public String parcelLockerSuccessfullyDeleted = "&2✔ &aParcel locker deleted successfully.";
100100
public String broadcastParcelLockerRemoved = "&4❣ &cThe parcel locker at &4{X} {Y} {Z} &cin &4{WORLD} &chas been removed by &4{PLAYER}!";
@@ -149,52 +149,52 @@ public static class GuiSettings {
149149

150150
@Description({ " ", "# The item of the small parcel size button" })
151151
public ConfigItem smallParcelSizeItem = new ConfigItem()
152-
.setName("&a Small")
152+
.setName("&a Small")
153153
.setLore(List.of("&bClick to select the small parcel size."))
154154
.setType(Material.LIME_WOOL);
155155

156156
@Description({ " ", "# The item of the medium parcel size button" })
157157
public ConfigItem mediumParcelSizeItem = new ConfigItem()
158-
.setName("&e Medium")
158+
.setName("&e Medium")
159159
.setLore(List.of("&bClick to select the medium parcel size."))
160160
.setType(Material.YELLOW_WOOL);
161161

162162
@Description({ " ", "# The item of the large parcel size button" })
163163
public ConfigItem largeParcelSizeItem = new ConfigItem()
164-
.setName("&c Large")
164+
.setName("&c Large")
165165
.setLore(List.of("&bClick to select the large parcel size."))
166166
.setType(Material.RED_WOOL);
167167

168168
@Description({ " ", "# The item represents selected small parcel size." })
169169
public ConfigItem selectedSmallParcelSizeItem = new ConfigItem()
170-
.setName("&a Small")
170+
.setName("&a Small")
171171
.setLore(List.of("&a✧ Currently selected!"))
172172
.setGlow(true)
173173
.setType(Material.OAK_CHEST_BOAT);
174174

175175
@Description({ " ", "# The item represents selected medium parcel size." })
176176
public ConfigItem selectedMediumParcelSizeItem = new ConfigItem()
177-
.setName("&e Medium")
177+
.setName("&e Medium")
178178
.setLore(List.of("&aCurrently selected!"))
179179
.setGlow(true)
180180
.setType(Material.CHEST_MINECART);
181181

182182
@Description({ " ", "# The item represents selected large parcel size." })
183183
public ConfigItem selectedLargeParcelSizeItem = new ConfigItem()
184-
.setName("&c Large")
184+
.setName("&c Large")
185185
.setLore(List.of("&aCurrently selected!"))
186186
.setGlow(true)
187187
.setType(Material.TNT_MINECART);
188188

189189
@Description({ " ", "# The item of the priority button" })
190190
public ConfigItem priorityItem = new ConfigItem()
191-
.setName("&a Priority")
191+
.setName("&a Priority")
192192
.setLore(List.of("&bClick to select the priority."))
193193
.setType(Material.REDSTONE);
194194

195195
@Description({ " ", "# The item of the selected priority button" })
196196
public ConfigItem selectedPriorityItem = new ConfigItem()
197-
.setName("&a Priority")
197+
.setName("&a Priority")
198198
.setLore(List.of("&aCurrently selected!", "&c&oClick to unselect."))
199199
.setType(Material.REDSTONE_BLOCK)
200200
.setGlow(true);
@@ -219,27 +219,27 @@ public static class GuiSettings {
219219

220220
@Description({ " ", "# The item of the parcel submit button" })
221221
public ConfigItem submitParcelItem = new ConfigItem()
222-
.setName("&a✔ Submit parcel")
223-
.setLore(List.of("&aClick to submit the parcel.", "&cProceed with caution! This action is final and cannot be undone."))
222+
.setName("&a&l✔ Submit parcel")
223+
.setLore(List.of("<bold><gradient:#26BF68:#4CE275>Click to submit the parcel.</gradient>", "<bold><gradient:#C40E0E:#EC2465>Proceed with caution! This action is final and cannot be undone.</gradient>"))
224224
.setType(Material.WAXED_OXIDIZED_COPPER)
225225
.setGlow(true);
226226

227227
@Description({ " ", "# The item of the parcel list button" })
228228
public ConfigItem myParcelsItem = new ConfigItem()
229-
.setName("&3 My parcels")
229+
.setName("&3 My parcels")
230230
.setLore(List.of("&bClick to open your parcels."))
231231
.setType(Material.ENDER_CHEST);
232232

233233
@Description({ " ", "# The item of the sent parcels button" })
234234
public ConfigItem sentParcelsItem = new ConfigItem()
235-
.setName("&6 Sent parcels")
235+
.setName("&6 Sent parcels")
236236
.setLore(List.of("&eClick to show parcels, which you sent.", "&eYou can also cancel them here, if you want to."))
237237
.setType(Material.FILLED_MAP)
238238
.setGlow(true);
239239

240240
@Description({ " ", "# The parcel archive item button." })
241241
public ConfigItem parcelArchiveItem = new ConfigItem()
242-
.setName("&5 Parcel archive")
242+
.setName("&5 Parcel archive")
243243
.setLore(List.of("&eClick to show all parcels, which you sent or received in the past."))
244244
.setType(Material.WRITTEN_BOOK);
245245

@@ -252,14 +252,14 @@ public static class GuiSettings {
252252

253253
@Description({ " ", "# The item of the parcel locker send button" })
254254
public ConfigItem parcelLockerSendItem = new ConfigItem()
255-
.setName("&b Send parcels")
255+
.setName("&b Send parcels")
256256
.setLore(List.of("&bClick to send parcels."))
257257
.setType(Material.SCULK_SHRIEKER)
258258
.setGlow(true);
259259

260260
@Description({ " ", "# The item of the parcel locker status button" })
261261
public ConfigItem parcelLockerStatusItem = new ConfigItem()
262-
.setName("&3 Parcel locker status")
262+
.setName("&3 Parcel locker status")
263263
.setLore(List.of("&bClick to show the status of your parcel locker."))
264264
.setType(Material.END_PORTAL_FRAME)
265265
.setGlow(true);
@@ -281,7 +281,7 @@ public static class GuiSettings {
281281

282282
@Description({ " ", "# The item of the parcel item storage button" })
283283
public ConfigItem parcelStorageItem = new ConfigItem()
284-
.setName("&6 Parcel storage")
284+
.setName("&6\uD83D\uDCE4 Parcel storage")
285285
.setLore(List.of("&eClick to edit the parcel content."))
286286
.setType(Material.CHEST);
287287

@@ -296,48 +296,48 @@ public static class GuiSettings {
296296

297297
@Description({ " ", "# The item of the parcel description button" })
298298
public ConfigItem parcelDescriptionItem = new ConfigItem()
299-
.setName("&2 &aParcel description")
299+
.setName("&2 &aParcel description")
300300
.setLore(List.of("&aClick to edit the parcel description."))
301301
.setType(Material.PAPER);
302302

303303
public String parcelDescriptionSetLine = "&2> &aCurrent parcel description: &2{DESCRIPTION}";
304304

305305
@Description({ " ", "# The item of the parcel receiver button" })
306306
public ConfigItem parcelReceiverItem = new ConfigItem()
307-
.setName("&5 &dParcel receiver")
307+
.setName("&5\uD83E\uDDCD &dParcel receiver")
308308
.setLore(List.of("&dClick to edit the parcel receiver."))
309309
.setType(Material.PLAYER_HEAD);
310310

311311
@Description({ " ", "# The value of the GUI line, when parcel name is set" })
312-
public String parcelReceiverGuiSetLine = "&5> &dCurrent parcel receiver: &5{RECEIVER}";
312+
public String parcelReceiverGuiSetLine = "&5» &dCurrent parcel receiver: &5{RECEIVER}";
313313

314314
@Description({ " ", "# The value of the player itemlore line, when parcel receiver is not set" })
315-
public String parcelReceiverNotSetLine = "&9ⓘ &bClick to select.";
315+
public String parcelReceiverNotSetLine = "&9› &bClick to select.";
316316

317317
@Description({ " ", "# The value of the player item lore line, when parcel receiver is set" })
318318
public String parcelReceiverSetLine = "&2✔ &aSelected!";
319319

320320
@Description({ " ", "# The item of the parcel destination locker button" })
321321
public ConfigItem parcelDestinationLockerItem = new ConfigItem()
322-
.setName("&3 &bDestination locker")
322+
.setName("&3 &bDestination locker")
323323
.setLore(List.of("&bClick to edit the parcel destination locker."))
324324
.setType(Material.VAULT);
325325

326326
@Description({ " ", "# The item of the previous page button" })
327327
public ConfigItem previousPageItem = new ConfigItem()
328-
.setName("&b Previous page")
328+
.setName("&b Previous page")
329329
.setLore(List.of("&bClick to go to the previous page."))
330330
.setType(Material.ARROW);
331331

332332
@Description({ " ", "# The item of the next page button" })
333333
public ConfigItem nextPageItem = new ConfigItem()
334-
.setName("&b Next page")
334+
.setName("&b Next page")
335335
.setLore(List.of("&bClick to go to the next page."))
336336
.setType(Material.ARROW);
337337

338338
@Description({ " ", "# The item of the confirm items button" })
339339
public ConfigItem confirmItemsItem = new ConfigItem()
340-
.setName("&a Confirm items")
340+
.setName("&a Confirm items")
341341
.setLore(List.of("&aClick to confirm the items."))
342342
.setType(Material.LIME_WOOL);
343343

@@ -360,13 +360,13 @@ public static class GuiSettings {
360360
.setType(Material.CHEST);
361361

362362
@Description({ " ", "# The lore of the button in the sending GUI of the parcel destination locker selection GUI" })
363-
public String parcelDestinationLockerSetLine = "&6> &eCurrent destination locker: &6{DESCRIPTION}";
363+
public String parcelDestinationLockerSetLine = "&6 &eCurrent destination locker: &6{DESCRIPTION}";
364364

365365
@Description({ " ", "# The destination GUI locker button lore in case the destination locker is set." })
366366
public String parcelDestinationSetLine = "&2✔ &aSelected!";
367367

368368
@Description({ " ", "# The destination GUI locker button lore in case the destination locker is not set." })
369-
public String parcelDestinationNotSetLine = "&9ⓘ &bClick to select.";
369+
public String parcelDestinationNotSetLine = "&9› &bClick to select.";
370370

371371
@Description({ " ", "# Illegal items list, that cannot be stored in the parcel." })
372372
public List<Material> illegalItems = List.of(

0 commit comments

Comments
 (0)