mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-25 03:55:35 +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) {
|
if (event.getClickedBlock() == null) {
|
||||||
return;
|
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);
|
event.setCancelled(true);
|
||||||
Lang.send(player, ChatColor.RED + Lang.get(event.getPlayer(), "journalDenied")
|
Lang.send(player, ChatColor.RED + Lang.get(event.getPlayer(), "journalDenied")
|
||||||
.replace("<journal>", Lang.get(event.getPlayer(), "journalTitle")));
|
.replace("<journal>", Lang.get(event.getPlayer(), "journalTitle")));
|
||||||
|
Loading…
Reference in New Issue
Block a user