From 9e40b972b1cffef4dbb85ffbcae6ba722b5242a4 Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 12 Jan 2022 01:22:24 +0100 Subject: [PATCH] refactor: Put Fawe version information at debugpaste to (#1533) --- .../java/com/fastasyncworldedit/bukkit/FaweBukkit.java | 3 +++ .../com/sk89q/worldedit/command/WorldEditCommands.java | 9 --------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/worldedit-bukkit/src/main/java/com/fastasyncworldedit/bukkit/FaweBukkit.java b/worldedit-bukkit/src/main/java/com/fastasyncworldedit/bukkit/FaweBukkit.java index f207cd925..7e60a05cb 100644 --- a/worldedit-bukkit/src/main/java/com/fastasyncworldedit/bukkit/FaweBukkit.java +++ b/worldedit-bukkit/src/main/java/com/fastasyncworldedit/bukkit/FaweBukkit.java @@ -158,6 +158,9 @@ public class FaweBukkit implements IFawe, Listener { public String getDebugInfo() { StringBuilder msg = new StringBuilder(); + msg.append("# FastAsyncWorldEdit Information\n"); + msg.append(Fawe.instance().getVersion()).append("\n\n"); + List plugins = new ArrayList<>(); Collections.addAll(plugins, Bukkit.getServer().getPluginManager().getPlugins()); plugins.sort(Comparator.comparing(Plugin::getName)); diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/command/WorldEditCommands.java b/worldedit-core/src/main/java/com/sk89q/worldedit/command/WorldEditCommands.java index 4a5883b90..c6ca4d7a8 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/command/WorldEditCommands.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/command/WorldEditCommands.java @@ -22,7 +22,6 @@ package com.sk89q.worldedit.command; import com.fastasyncworldedit.core.Fawe; import com.fastasyncworldedit.core.FaweVersion; import com.fastasyncworldedit.core.configuration.Caption; -import com.fastasyncworldedit.core.configuration.Settings; import com.fastasyncworldedit.core.util.UpdateNotification; import com.intellectualsites.paster.IncendoPaster; import com.sk89q.worldedit.LocalSession; @@ -36,14 +35,8 @@ import com.sk89q.worldedit.entity.Player; import com.sk89q.worldedit.event.platform.ConfigurationLoadEvent; import com.sk89q.worldedit.extension.platform.Actor; import com.sk89q.worldedit.extension.platform.Capability; -import com.sk89q.worldedit.extension.platform.Platform; -import com.sk89q.worldedit.extension.platform.PlatformManager; -import com.sk89q.worldedit.util.formatting.component.MessageBox; -import com.sk89q.worldedit.util.formatting.component.TextComponentProducer; import com.sk89q.worldedit.util.formatting.text.TextComponent; import com.sk89q.worldedit.util.formatting.text.event.ClickEvent; -import com.sk89q.worldedit.util.formatting.text.event.HoverEvent; -import com.sk89q.worldedit.util.formatting.text.format.TextColor; import org.enginehub.piston.annotation.Command; import org.enginehub.piston.annotation.CommandContainer; import org.enginehub.piston.annotation.param.Arg; @@ -57,8 +50,6 @@ import java.time.ZonedDateTime; import java.time.format.DateTimeFormatter; import java.time.format.TextStyle; import java.time.zone.ZoneRulesException; -import java.util.Date; -import java.util.GregorianCalendar; import java.util.List; import java.util.Map;