From 8930ebe572047a5f0007501a19f19d41f4deb9e0 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Thu, 10 Dec 2020 18:06:32 +0000 Subject: [PATCH] Relight command is pointless as we'd just use FAWE for it anyway. --- .../plotsquared/core/command/MainCommand.java | 1 - .../com/plotsquared/core/command/Relight.java | 66 ------------------- 2 files changed, 67 deletions(-) delete mode 100644 Core/src/main/java/com/plotsquared/core/command/Relight.java diff --git a/Core/src/main/java/com/plotsquared/core/command/MainCommand.java b/Core/src/main/java/com/plotsquared/core/command/MainCommand.java index be39562ae..903651678 100644 --- a/Core/src/main/java/com/plotsquared/core/command/MainCommand.java +++ b/Core/src/main/java/com/plotsquared/core/command/MainCommand.java @@ -111,7 +111,6 @@ public class MainCommand extends Command { commands.add(PluginCmd.class); commands.add(Purge.class); commands.add(Reload.class); - commands.add(Relight.class); commands.add(Merge.class); commands.add(DebugPaste.class); commands.add(Unlink.class); diff --git a/Core/src/main/java/com/plotsquared/core/command/Relight.java b/Core/src/main/java/com/plotsquared/core/command/Relight.java deleted file mode 100644 index 184a99571..000000000 --- a/Core/src/main/java/com/plotsquared/core/command/Relight.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * _____ _ _ _____ _ - * | __ \| | | | / ____| | | - * | |__) | | ___ | |_| (___ __ _ _ _ __ _ _ __ ___ __| | - * | ___/| |/ _ \| __|\___ \ / _` | | | |/ _` | '__/ _ \/ _` | - * | | | | (_) | |_ ____) | (_| | |_| | (_| | | | __/ (_| | - * |_| |_|\___/ \__|_____/ \__, |\__,_|\__,_|_| \___|\__,_| - * | | - * |_| - * PlotSquared plot management system for Minecraft - * Copyright (C) 2020 IntellectualSites - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ -package com.plotsquared.core.command; - -import com.plotsquared.core.configuration.caption.TranslatableCaption; -import com.plotsquared.core.player.PlotPlayer; -import com.plotsquared.core.util.task.RunnableVal2; -import com.plotsquared.core.util.task.RunnableVal3; - -import java.util.concurrent.CompletableFuture; - -@CommandDeclaration(command = "relight", - usage = "/plot relight", - category = CommandCategory.DEBUG, - requiredType = RequiredType.PLAYER) -public class Relight extends Command { - public Relight() { - super(MainCommand.getInstance(), true); - } - - @Override - public CompletableFuture execute(final PlotPlayer player, String[] args, - RunnableVal3 confirm, - RunnableVal2 whenDone) { - player.sendMessage(TranslatableCaption.of("errors.not_implemented")); -/* final Plot plot = player.getCurrentPlot(); - if (plot == null) { - player.sendMessage(TranslatableCaption.of("errors.not_in_plot")); - return CompletableFuture.completedFuture(false); - } - final QueueCoordinator queue = plot.getArea().getQueue(false); - ChunkManager.chunkTask(plot, new RunnableVal() { - @Override public void run(int[] value) { - queue.fixChunkLighting(value[0], value[1]); - } - }, () -> { - plot.refreshChunks(); - player.sendMessage(TranslatableCaption.of("setblock.set_block_action_finished")); - }, 5);*/ - - return CompletableFuture.completedFuture(true); - } -}