From 75aaa57f1fda7713ad480526389249e5b81081bd Mon Sep 17 00:00:00 2001 From: Picono435 <57836766+Picono435@users.noreply.github.com> Date: Sat, 22 Aug 2020 16:48:02 +0100 Subject: [PATCH] Updated to MC1.12.2-1.3.2 This version adds just one/two features and solve some minor issues. Here is a detailed change-log: - Added max tries to the /rtp command - Fixed minor issues How to update: 1. Delete the old .jar file from the mods folder of the server root 2. Move the new .jar to the folder mods of the server root --- build.gradle | 2 +- .../java/com/gmail/picono435/randomtp/config/Config.java | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index c15311f..28815cc 100644 --- a/build.gradle +++ b/build.gradle @@ -14,7 +14,7 @@ apply plugin: 'net.minecraftforge.gradle' apply plugin: 'eclipse' apply plugin: 'maven-publish' -version = 'MC1.12.2-1.3.1' +version = 'MC1.12.2-1.3.2' group = 'com.gmail.picono435.randomtp' // http://maven.apache.org/guides/mini/guide-naming-conventions.html archivesBaseName = 'RandomTP' diff --git a/src/main/java/com/gmail/picono435/randomtp/config/Config.java b/src/main/java/com/gmail/picono435/randomtp/config/Config.java index 0f055cd..efc4968 100644 --- a/src/main/java/com/gmail/picono435/randomtp/config/Config.java +++ b/src/main/java/com/gmail/picono435/randomtp/config/Config.java @@ -18,10 +18,11 @@ public class Config { public static boolean dim = true; public static boolean useWhitelist = true; - public static String[] allowedDimensions = {"1", "2"}; + public static String[] allowedDimensions = {"1", "-1"}; public static int cooldown = 0; - public static boolean useOriginal = false; + public static boolean useOriginal = true; + public static int maxTries = -1; public static void readConfig() { Configuration cfg = MainMod.config; @@ -53,6 +54,7 @@ public static void initGeneralConfig(Configuration cfg) { cfg.addCustomCategoryComment(CATEGORY_OTHERS, "Others configuration settings for RandomTP!"); cooldown = cfg.getInt("cooldown", CATEGORY_OTHERS, cooldown, 0, Integer.MAX_VALUE, "How much cooldown do you want for the command (put 0 for none)"); - useOriginal = cfg.getBoolean("use-original", CATEGORY_OTHERS, useOriginal, "If you want to use the original RTP system or the /spreadplayers system. *ORIGINAL SYSTEM STILL ON BETA*"); + useOriginal = cfg.getBoolean("use-original", CATEGORY_OTHERS, useOriginal, "If you want to use the original RTP system or the /spreadplayers system."); + maxTries = cfg.getInt("max-tries", CATEGORY_OTHERS, maxTries, -1, Integer.MAX_VALUE, "The amount of tries to find a safe location (original system) [-1 = infinite]"); } } \ No newline at end of file