From c8d8fb6aff206447672d2a38451c04afa700f437 Mon Sep 17 00:00:00 2001 From: N0tMyFaultOG Date: Tue, 21 Apr 2020 23:38:56 +0200 Subject: [PATCH] Reformat premium information --- .../main/java/com/plotsquared/bukkit/BukkitMain.java | 10 ++++------ .../java/com/plotsquared/core/command/DebugPaste.java | 6 +++--- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/Bukkit/src/main/java/com/plotsquared/bukkit/BukkitMain.java b/Bukkit/src/main/java/com/plotsquared/bukkit/BukkitMain.java index 437353f90..460afe761 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/BukkitMain.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/BukkitMain.java @@ -49,13 +49,9 @@ import com.plotsquared.bukkit.util.uuid.FileUUIDHandler; import com.plotsquared.bukkit.util.uuid.LowerOfflineUUIDWrapper; import com.plotsquared.bukkit.util.uuid.OfflineUUIDWrapper; import com.plotsquared.bukkit.util.uuid.SQLUUIDHandler; -import com.plotsquared.core.configuration.ConfigurationSection; +import com.plotsquared.core.configuration.*; import com.plotsquared.core.IPlotMain; import com.plotsquared.core.PlotSquared; -import com.plotsquared.core.configuration.Captions; -import com.plotsquared.core.configuration.ChatFormatter; -import com.plotsquared.core.configuration.ConfigurationNode; -import com.plotsquared.core.configuration.Settings; import com.plotsquared.core.generator.GeneratorWrapper; import com.plotsquared.core.generator.HybridGen; import com.plotsquared.core.generator.HybridUtils; @@ -127,7 +123,7 @@ import java.util.List; import java.util.Map; import java.util.UUID; -import static com.plotsquared.core.util.PremiumVerification.getUserID; +import static com.plotsquared.core.util.PremiumVerification.*; import static com.plotsquared.core.util.ReflectionUtils.getRefClass; public final class BukkitMain extends JavaPlugin implements Listener, IPlotMain { @@ -196,6 +192,8 @@ public final class BukkitMain extends JavaPlugin implements Listener, IPlotMain if (PremiumVerification.isPremium()) { PlotSquared.log(Captions.PREFIX + "&6PlotSquared version licensed to Spigot user " + getUserID()); + PlotSquared.log(Captions.PREFIX + "&6https://www.spigotmc.org/resources/" + getResourceID()); + PlotSquared.log(Captions.PREFIX + "&6Download " + getDownloadID()); PlotSquared.log(Captions.PREFIX + "&6Thanks for supporting us :)"); } else { PlotSquared.log(Captions.PREFIX + "&6Couldn't verify purchase :("); diff --git a/Core/src/main/java/com/plotsquared/core/command/DebugPaste.java b/Core/src/main/java/com/plotsquared/core/command/DebugPaste.java index 4a429eee9..9c303d5bf 100644 --- a/Core/src/main/java/com/plotsquared/core/command/DebugPaste.java +++ b/Core/src/main/java/com/plotsquared/core/command/DebugPaste.java @@ -81,9 +81,9 @@ public class DebugPaste extends SubCommand { "# Welcome to this paste\n# It is meant to provide us at IntellectualSites with better information about your " + "problem\n\n"); b.append("# PlotSquared Information\n"); - b.append("This PlotSquared version (").append(PremiumVerification.getResourceID()).append(") is licensed to the spigot user ") - .append(PremiumVerification.getUserID()).append(" under ").append( - PremiumVerification.getDownloadID()).append("\n"); + b.append("Resource ID: ").append(PremiumVerification.getResourceID()).append("\n"); + b.append("Download ID: ").append(PremiumVerification.getDownloadID()).append("\n"); + b.append("This PlotSquared version is licensed to the spigot user ").append(PremiumVerification.getUserID()).append("\n\n"); b.append("# Server Information\n"); b.append("Server Version: ").append(PlotSquared.get().IMP.getServerImplementation()) .append("\n");