Fix RedstonetesterUtils.validBlock
Dieser Commit ist enthalten in:
Ursprung
5bc1bc544a
Commit
627d44c02a
@ -28,7 +28,6 @@ import de.steamwar.core.VersionedRunnable;
|
||||
import net.md_5.bungee.api.ChatColor;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
|
||||
@Linked(LinkageType.COMMAND)
|
||||
public class RedstonetesterCommand extends SWCommand {
|
||||
|
||||
|
@ -34,10 +34,10 @@ import org.bukkit.Material;
|
||||
import org.bukkit.block.data.BlockData;
|
||||
import org.bukkit.block.data.Powerable;
|
||||
import org.bukkit.block.data.type.Piston;
|
||||
import org.bukkit.block.data.type.RedstoneWire;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
|
||||
|
||||
@UtilityClass
|
||||
public class RedstonetesterUtils {
|
||||
|
||||
@ -57,6 +57,7 @@ public class RedstonetesterUtils {
|
||||
public boolean validBlock(Player player, BlockData block) {
|
||||
if (block instanceof Powerable) return true;
|
||||
if (block instanceof Piston) return true;
|
||||
if (block instanceof RedstoneWire) return true;
|
||||
player.sendMessage(BauSystem.PREFIX + ChatColor.RED + "Unbekannte Position");
|
||||
return false;
|
||||
}
|
||||
|
@ -35,7 +35,6 @@ import org.bukkit.event.block.BlockRedstoneEvent;
|
||||
import org.bukkit.event.player.PlayerInteractEvent;
|
||||
import org.bukkit.event.player.PlayerQuitEvent;
|
||||
|
||||
|
||||
@Linked(LinkageType.LISTENER)
|
||||
public class RestonetesterListener implements Listener {
|
||||
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren