Comments on config

This commit is contained in:
samo_lego 2020-01-04 14:09:43 +01:00
parent 499659afb5
commit a8c0410fbf
2 changed files with 11 additions and 2 deletions

View File

@ -10,6 +10,6 @@ loader_version=0.7.3+build.176
fabric_version=0.4.26+build.283-1.15 fabric_version=0.4.26+build.283-1.15
# Mod Properties # Mod Properties
mod_version = 1.1.0 mod_version = 1.1.1
maven_group = org.samo_lego maven_group = org.samo_lego
archives_base_name = simpleauth archives_base_name = simpleauth

View File

@ -28,20 +28,29 @@ import java.io.FileWriter;
import java.io.IOException; import java.io.IOException;
public class AuthConfig { public class AuthConfig {
// If player is not authenticated, following conditions apply
public static class MainConfig { public static class MainConfig {
// Allows chat (but not commands, except for /login and /register)
public boolean allowChat = false; public boolean allowChat = false;
// Allows player movement
public boolean allowMovement = false; public boolean allowMovement = false;
// Allows block "use" - right clicking (e.g. opening a chest)
public boolean allowBlockUse = false; public boolean allowBlockUse = false;
// Allows mining || punching blocks
public boolean allowBlockPunch = false; public boolean allowBlockPunch = false;
// Allows dropping items from inventory
public boolean allowItemDrop = false; public boolean allowItemDrop = false;
// Allows item "use" - right click function (e.g. using a bow)
public boolean allowItemUse = false; public boolean allowItemUse = false;
// Allows attacking mobs
public boolean allowEntityPunch = false; public boolean allowEntityPunch = false;
// Allows "right-clicking" on an entity (e.g. trading with villagers)
public boolean allowEntityInteract = false; public boolean allowEntityInteract = false;
// If player should be invulnerable before authentication // If player should be invulnerable before authentication
public boolean playerInvulnerable = true; public boolean playerInvulnerable = true;
// If player should be invisible to mobs before authentication // If player should be invisible to mobs before authentication
public boolean playerInvisible = true; 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 int delay = 60;
} }
public static class LangConfig { public static class LangConfig {