Skip to content

Commit

Permalink
[Release] change actionbar to popup
Browse files Browse the repository at this point in the history
  • Loading branch information
Josscoder committed Mar 8, 2023
1 parent ded73b9 commit ce27c10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/josscoder/itemsid/command/ItemIdCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public boolean execute(CommandSender sender, String label, String[] args) {

if (args.length < 1) {
Item item = player.getInventory().getItemInHand();
player.sendActionBar(TextFormat.colorize(String.format("&6%s\n&r&7%s:%s", item.getName(), item.getId(), item.getDamage())));
player.sendPopup(TextFormat.colorize(String.format("&6%s\n&r&7%s:%s", item.getName(), item.getId(), item.getDamage())));

return true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ public void onItemHeld(PlayerItemHeldEvent event) {
return;
}

player.sendActionBar(TextFormat.colorize(String.format("&9%s\n&r&7%s:%s", item.getName(), item.getId(), item.getDamage())));
player.sendPopup(TextFormat.colorize(String.format("&9%s\n&r&7%s:%s", item.getName(), item.getId(), item.getDamage())));
}
}

0 comments on commit ce27c10

Please sign in to comment.