From 6da49949556d6556a091883653bf0cd6e3f2b371 Mon Sep 17 00:00:00 2001 From: N0tMyFaultOG Date: Tue, 21 Apr 2020 23:06:11 +0200 Subject: [PATCH] Enhance premium verification --- .../main/java/com/plotsquared/core/command/DebugPaste.java | 2 +- .../com/plotsquared/core/util/PremiumVerification.java | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) 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 d366c2b41..4a429eee9 100644 --- a/Core/src/main/java/com/plotsquared/core/command/DebugPaste.java +++ b/Core/src/main/java/com/plotsquared/core/command/DebugPaste.java @@ -81,7 +81,7 @@ 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 is licensed to the spigot user ") + 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("# Server Information\n"); diff --git a/Core/src/main/java/com/plotsquared/core/util/PremiumVerification.java b/Core/src/main/java/com/plotsquared/core/util/PremiumVerification.java index 3e3f57efa..7fd78826d 100644 --- a/Core/src/main/java/com/plotsquared/core/util/PremiumVerification.java +++ b/Core/src/main/java/com/plotsquared/core/util/PremiumVerification.java @@ -35,6 +35,13 @@ public class PremiumVerification { return "%%__USER__%%"; } + /** + * @return Resource ID if downloaded through SpigotMC + */ + public static String getResourceID() { + return "%%__RESOURCE__%%"; + } + /** * @return Download ID if downloaded through SpigotMC */