Sign edit only with Empty hand
Dieser Commit ist enthalten in:
Ursprung
9b70227f74
Commit
f8871d6a8e
@ -32,6 +32,7 @@ import de.steamwar.core.VersionedRunnable;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.ChatColor;
|
||||
import com.comphenix.protocol.ProtocolLibrary;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.block.Block;
|
||||
import org.bukkit.block.Sign;
|
||||
import org.bukkit.entity.Player;
|
||||
@ -115,7 +116,9 @@ public class RegionListener implements Listener {
|
||||
public void editSign(PlayerInteractEvent event) {
|
||||
if(event.getAction() != Action.RIGHT_CLICK_BLOCK ||
|
||||
!event.getClickedBlock().getType().name().contains("SIGN") ||
|
||||
!event.getPlayer().isSneaking())
|
||||
!event.getPlayer().isSneaking() ||
|
||||
event.getItem() == null ||
|
||||
event.getItem().getType() != Material.AIR)
|
||||
return;
|
||||
|
||||
Player player = event.getPlayer();
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren