Revert duel hand behavior of /book command

This commit is contained in:
Josh Roy 2023-07-25 16:58:26 -04:00
parent ae1f1583c2
commit c32a0f975e

View File

@ -25,7 +25,7 @@ public class Commandbook extends EssentialsCommand {
@Override
public void run(final Server server, final User user, final String commandLabel, final String[] args) throws Exception {
final ItemStack item = user.getItemInHand();
final ItemStack item = Inventories.getItemInMainHand(user.getBase());
final String player = user.getName();
if (item.getType() == Material.WRITTEN_BOOK) {
final BookMeta bmeta = (BookMeta) item.getItemMeta();