mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-22 09:08:01 +01:00
Revert duel hand behavior of /book command
This commit is contained in:
parent
ae1f1583c2
commit
c32a0f975e
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user