Skip to content

Commit

Permalink
Update to 1.19.3 - 1.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
YanisBft committed Jan 10, 2023
1 parent 42169ac commit 984563c
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
pacprofile_group = fr.peaceandcube
pacprofile_name = pacprofile
pacprofile_version = 1.4.1
pacprofile_version = 1.4.2

paper_version = 1.19.2-R0.1-SNAPSHOT
paper_version = 1.19.3-R0.1-SNAPSHOT

anvilgui_version = 1.5.3-20220809.170244-11
anvilgui_version = 1.6.3-20221221.160308-1
luckperms_version = 5.4
essentials_version = 2.19.7
griefprevention_version = 16.18
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/fr/peaceandcube/pacprofile/gui/ClaimsGui.java
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,10 @@ else if (CLAIM_SLOTS.containsKey(slot - 2)) {
.title(Messages.CLAIM_NAME_TITLE)
.text(PACProfile.getInstance().playerData.getClaimName(this.player.getUniqueId(), CLAIM_SLOTS.get(slot - 2)))
.itemLeft(new ItemStack(Material.PAPER))
.onComplete(((p, s) -> {
PACProfile.getInstance().playerData.setClaimName(p.getUniqueId(), CLAIM_SLOTS.get(slot - 2), s);
.onComplete((completion -> {
PACProfile.getInstance().playerData.setClaimName(completion.getPlayer().getUniqueId(), CLAIM_SLOTS.get(slot - 2), completion.getText());
new ClaimsGui(this.viewer, this.player, this.page, this.maxPages).open();
return AnvilGUI.Response.close();
return List.of(AnvilGUI.ResponseAction.close());
}))
.open(this.viewer);
}
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/fr/peaceandcube/pacprofile/gui/HomesGui.java
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,10 @@ else if (HOME_SLOTS.containsKey(slot - 1)) {
.title(Messages.HOME_NOTES_TITLE)
.text(PACProfile.getInstance().playerData.getHomeNotes(this.player.getUniqueId(), HOME_SLOTS.get(slot - 1)))
.itemLeft(new ItemStack(Material.PAPER))
.onComplete(((p, s) -> {
PACProfile.getInstance().playerData.setHomeNotes(p.getUniqueId(), HOME_SLOTS.get(slot - 1), s);
.onComplete((completion -> {
PACProfile.getInstance().playerData.setHomeNotes(completion.getPlayer().getUniqueId(), HOME_SLOTS.get(slot - 1), completion.getText());
new HomesGui(this.viewer, this.player, this.page, this.maxPages).open();
return AnvilGUI.Response.close();
return List.of(AnvilGUI.ResponseAction.close());
}))
.open(this.viewer);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,10 @@ else if (PLAYERS_SLOTS.containsKey(slot - 1)) {
.title(Messages.ONLINE_PLAYER_NOTES_TITLE)
.text(PACProfile.getInstance().playerData.getPlayerNotes(this.player.getUniqueId(), PLAYERS_SLOTS.get(slot - 1).getUniqueId().toString()))
.itemLeft(new ItemStack(Material.PAPER))
.onComplete(((p, s) -> {
PACProfile.getInstance().playerData.setPlayerNotes(p.getUniqueId(), PLAYERS_SLOTS.get(slot - 1).getUniqueId().toString(), s);
.onComplete((completion -> {
PACProfile.getInstance().playerData.setPlayerNotes(completion.getPlayer().getUniqueId(), PLAYERS_SLOTS.get(slot - 1).getUniqueId().toString(), completion.getText());
new OnlinePlayersGui(this.viewer, this.player, this.page, this.maxPages).open();
return AnvilGUI.Response.close();
return List.of(AnvilGUI.ResponseAction.close());
}))
.open(this.viewer);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ private String getRank() {
User user = PACProfile.getLuckPerms().getUserManager().getUser(this.player.getUniqueId());
if (user != null) {
Group group = PACProfile.getLuckPerms().getGroupManager().getGroup(user.getPrimaryGroup());
if (group != null) {
if (group != null && group.getDisplayName() != null) {
return group.getDisplayName();
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ main: fr.peaceandcube.pacprofile.PACProfile
version: ${version}
author: YanisBft
website: https://github.com/PeaceAndCubeMC/PACProfile
api-version: 1.18
api-version: 1.19

depend:
- LuckPerms
Expand Down

0 comments on commit 984563c

Please sign in to comment.