Skip to content

Commit

Permalink
Random string for click verify
Browse files Browse the repository at this point in the history
  • Loading branch information
HaHaWTH committed Oct 21, 2023
1 parent 59eabe3 commit 1ef7ed4
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ public void onInventoryClick(InventoryClickEvent event) {
}
}


@EventHandler(ignoreCancelled = true, priority = EventPriority.HIGHEST)
public void onPlayerJoin(PlayerJoinEvent event) {
randomString = "";
Expand Down Expand Up @@ -117,7 +116,7 @@ public void onPlayerJoin(PlayerJoinEvent event) {
ItemMeta meta = item.getItemMeta();
try {
if (meta != null) {
meta.setDisplayName("§a我是真人");
meta.setDisplayName(a" + randomString + a我是真人");
item.setItemMeta(meta);
}
} catch (NullPointerException e) {
Expand Down

0 comments on commit 1ef7ed4

Please sign in to comment.