mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-22 02:25:42 +01:00
Deny physical journal to Chiseled Bookshelf
This commit is contained in:
parent
c5a753e19e
commit
ccea1acba5
@ -190,7 +190,8 @@ public class PlayerListener implements Listener {
|
||||
if (event.getClickedBlock() == null) {
|
||||
return;
|
||||
}
|
||||
if (event.getClickedBlock().getType().name().equals("LECTERN")) {
|
||||
if (event.getClickedBlock().getType().name().equals("LECTERN")
|
||||
|| event.getClickedBlock().getType().name().equals("CHISELED_BOOKSHELF")) {
|
||||
event.setCancelled(true);
|
||||
Lang.send(player, ChatColor.RED + Lang.get(event.getPlayer(), "journalDenied")
|
||||
.replace("<journal>", Lang.get(event.getPlayer(), "journalTitle")));
|
||||
|
Loading…
Reference in New Issue
Block a user