Skip to content

Commit

Permalink
Updated to MC1.12.2-1.3.2
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Picono435 authored Aug 22, 2020
1 parent 6e922a6 commit 75aaa57
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down
8 changes: 5 additions & 3 deletions src/main/java/com/gmail/picono435/randomtp/config/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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]");
}
}

0 comments on commit 75aaa57

Please sign in to comment.