Skip to content

Commit

Permalink
add config setting to replace debug submit url
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Dec 17, 2023
1 parent c18ae15 commit 2595a61
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Expand Up @@ -9,6 +9,7 @@
import com.denizenscript.denizencore.objects.core.DurationTag;
import com.denizenscript.denizencore.utilities.CoreUtilities;
import com.denizenscript.denizencore.utilities.ReflectionRefuse;
import com.denizenscript.denizencore.utilities.debugging.DebugSubmitter;
import org.bukkit.configuration.ConfigurationSection;
import org.bukkit.configuration.file.FileConfiguration;

Expand Down Expand Up @@ -63,6 +64,10 @@ public static void refillCache() {
CoreConfiguration.debugTrimLength = config.getInt("Debug.Trim length limit", 1024);
CoreConfiguration.debugPrefix = config.getString("Debug.Prefix", "");
CoreConfiguration.debugLineLength = config.getInt("Debug.Line length", 300);
DebugSubmitter.pasteURL = config.getString("Debug.Paste URL", DebugSubmitter.corePasteURL);
if (DebugSubmitter.pasteURL.equals("default")) {
DebugSubmitter.pasteURL = DebugSubmitter.corePasteURL;
}
String scriptEncoding = config.getString("Scripts.Encoding", "default");
if (scriptEncoding.equalsIgnoreCase("default")) {
CoreConfiguration.scriptEncoding = null;
Expand Down
2 changes: 2 additions & 0 deletions plugin/src/main/resources/config.yml
Expand Up @@ -46,6 +46,8 @@ Debug:
Warning rate: 10000
# If set true, core systems will check what thread is performing certain critical actions, and give a warning if the wrong one is used.
Verify thread: false
# Optionally you can set an alternate URL here to any valid instance of https://github.com/DenizenScript/DenizenPastingWebsite - 'default' corresponds to https://paste.denizenscript.com/New/Log
Paste URL: default

Scripts:
World:
Expand Down

0 comments on commit 2595a61

Please sign in to comment.