From c49f0357ba9492f250d86608263ad398cc071d37 Mon Sep 17 00:00:00 2001 From: ClientCrash Date: Sat, 18 Sep 2021 18:47:18 +0200 Subject: [PATCH] removed unsupported webcam feature --- pom.xml | 21 +------------------ .../graphicsmc/RenderCommandListener.java | 5 +++-- .../renderers/RockWebcamRenderer.java | 7 ++++--- 3 files changed, 8 insertions(+), 25 deletions(-) diff --git a/pom.xml b/pom.xml index dd9b793..fc01afe 100644 --- a/pom.xml +++ b/pom.xml @@ -79,31 +79,12 @@ - - com.github.sarxos - webcam-capture-driver-openimaj - 0.3.12 - - - com.github.sarxos - webcam-capture - 0.3.12 - - - com.github.sarxos - webcam-capture-driver-opencv - 0.3.12 - org.spigotmc spigot-api 1.17.1-R0.1-SNAPSHOT provided - - com.comphenix.protocol - ProtocolLib - 4.7.0 - + diff --git a/src/main/java/com/github/clientcrash/graphicsmc/graphicsmc/RenderCommandListener.java b/src/main/java/com/github/clientcrash/graphicsmc/graphicsmc/RenderCommandListener.java index a5538fe..b422c93 100644 --- a/src/main/java/com/github/clientcrash/graphicsmc/graphicsmc/RenderCommandListener.java +++ b/src/main/java/com/github/clientcrash/graphicsmc/graphicsmc/RenderCommandListener.java @@ -40,8 +40,9 @@ public boolean onCommand(CommandSender sender, Command command, String label, St case None: break; case Cam: - mv.setScale(MapView.Scale.FARTHEST); - mv.addRenderer(new RockWebcamRenderer()); + sender.sendMessage("NOT SUPPORTED"); + break; + /*mv.addRenderer(new RockWebcamRenderer());*/ case Frames: mv.setScale(MapView.Scale.FARTHEST); ArrayList imgl = getImagesWithEndingInDir(args[2],args[3]); diff --git a/src/main/java/com/github/clientcrash/graphicsmc/graphicsmc/renderers/RockWebcamRenderer.java b/src/main/java/com/github/clientcrash/graphicsmc/graphicsmc/renderers/RockWebcamRenderer.java index 8ecc06f..6ba3b0c 100644 --- a/src/main/java/com/github/clientcrash/graphicsmc/graphicsmc/renderers/RockWebcamRenderer.java +++ b/src/main/java/com/github/clientcrash/graphicsmc/graphicsmc/renderers/RockWebcamRenderer.java @@ -1,6 +1,5 @@ package com.github.clientcrash.graphicsmc.graphicsmc.renderers; -import com.github.sarxos.webcam.Webcam; import org.bukkit.Bukkit; import org.bukkit.entity.Player; import org.bukkit.map.MapCanvas; @@ -9,7 +8,9 @@ import java.awt.image.BufferedImage; -public class RockWebcamRenderer extends MapRenderer { +public class RockWebcamRenderer /*extends MapRenderer */{ + /* + NOT SUPPORTED public RockWebcamRenderer(){ cam = Webcam.getDefault(); if (cam != null) { @@ -23,5 +24,5 @@ public RockWebcamRenderer(){ public void render(MapView map, MapCanvas canvas, Player player) { BufferedImage bf = cam.getImage(); canvas.drawImage(0,0,bf); - } + }*/ }