From a8c0410fbfb3dcd0d6b734f58d0b4ed26f6e8954 Mon Sep 17 00:00:00 2001 From: samo_lego <34912839+samolego@users.noreply.github.com> Date: Sat, 4 Jan 2020 14:09:43 +0100 Subject: [PATCH] Comments on config --- gradle.properties | 2 +- .../org/samo_lego/simpleauth/utils/AuthConfig.java | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/gradle.properties b/gradle.properties index 546c960..8b14846 100644 --- a/gradle.properties +++ b/gradle.properties @@ -10,6 +10,6 @@ loader_version=0.7.3+build.176 fabric_version=0.4.26+build.283-1.15 # Mod Properties - mod_version = 1.1.0 + mod_version = 1.1.1 maven_group = org.samo_lego archives_base_name = simpleauth \ No newline at end of file diff --git a/src/main/java/org/samo_lego/simpleauth/utils/AuthConfig.java b/src/main/java/org/samo_lego/simpleauth/utils/AuthConfig.java index 99b9d00..e767ab9 100644 --- a/src/main/java/org/samo_lego/simpleauth/utils/AuthConfig.java +++ b/src/main/java/org/samo_lego/simpleauth/utils/AuthConfig.java @@ -28,20 +28,29 @@ import java.io.FileWriter; import java.io.IOException; public class AuthConfig { + // If player is not authenticated, following conditions apply public static class MainConfig { + // Allows chat (but not commands, except for /login and /register) public boolean allowChat = false; + // Allows player movement public boolean allowMovement = false; + // Allows block "use" - right clicking (e.g. opening a chest) public boolean allowBlockUse = false; + // Allows mining || punching blocks public boolean allowBlockPunch = false; + // Allows dropping items from inventory public boolean allowItemDrop = false; + // Allows item "use" - right click function (e.g. using a bow) public boolean allowItemUse = false; + // Allows attacking mobs public boolean allowEntityPunch = false; + // Allows "right-clicking" on an entity (e.g. trading with villagers) public boolean allowEntityInteract = false; // If player should be invulnerable before authentication public boolean playerInvulnerable = true; // If player should be invisible to mobs before authentication public boolean playerInvisible = true; - // Time after which player will be kicked if not authenticated [s] + // Time after which player will be kicked if not authenticated - in seconds public int delay = 60; } public static class LangConfig {