QUOTE: Kindness is always fashionable.

Fixed placing on chair sitting - poppy - A feature-rich Minecraft plugin which enhances gaming experience

poppy

A feature-rich Minecraft plugin which enhances gaming experience
git clone git://192.168.2.2/poppy
Log | Files | Refs | README

commit 9f9461f40eba21f126ab9cc5365caf3131a4939a
parent 7b3369d667441c6feeb36c4849d80192d3d78d1e
Author: typable <typable.dev@gmail.com>
Date:   Fri, 27 Nov 2020 12:29:04 +0100

Fixed placing on chair sitting
Diffstat:
Msrc/de/typable/minecrafthub/Main.java | 6++++++
Msrc/de/typable/minecrafthub/event/ChairListener.java | 2++
2 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/de/typable/minecrafthub/Main.java b/src/de/typable/minecrafthub/Main.java @@ -72,6 +72,12 @@ public class Main extends JavaPlugin if(label.equals("skull")) { + if(!player.isOp()) + { + player.sendMessage(DefaultConstants.Messages.NOT_ENOUGH_PERMISSION); + return true; + } + if(args.length != 1) { return false; diff --git a/src/de/typable/minecrafthub/event/ChairListener.java b/src/de/typable/minecrafthub/event/ChairListener.java @@ -56,6 +56,8 @@ public class ChairListener implements Listener arrow.setInvulnerable(true); arrow.setPickupStatus(PickupStatus.DISALLOWED); arrow.setPassenger((Entity) event.getPlayer()); + + event.setCancelled(true); } } }