From 5a5c721209baa72d60d8283eeb83ba17aed02cd3 Mon Sep 17 00:00:00 2001 From: Draycia Date: Sat, 13 Jun 2020 03:03:24 -0700 Subject: [PATCH] Use -1 to denote disabled options --- .../net/draycia/simplechat/channels/SimpleChatChannel.java | 2 +- src/main/resources/config.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/net/draycia/simplechat/channels/SimpleChatChannel.java b/src/main/java/net/draycia/simplechat/channels/SimpleChatChannel.java index c4f6a84e..f9b5973c 100644 --- a/src/main/java/net/draycia/simplechat/channels/SimpleChatChannel.java +++ b/src/main/java/net/draycia/simplechat/channels/SimpleChatChannel.java @@ -324,7 +324,7 @@ public class SimpleChatChannel extends ChatChannel { private boolean isDefault = false; private boolean ignorable = true; private String name; - private double distance = 0; + private double distance = -1; private String switchMessage = "You are now in chat!"; private String toggleOffMessage = "You can no longer see chat!"; private String toggleOnMessage = "You can now see chat!"; diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index 98ef635b..6b18de67 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -1,6 +1,6 @@ channels: global: - id: 0 # Set to 0, comment out, or remove to disable channel bridge + id: -1 # Set to -1, comment out, or remove to disable channel bridge switch-message: 'You are now in chat!' toggle-on-message: 'You can now see chat!' toggle-off-message: 'You can no longer see chat!' @@ -11,4 +11,4 @@ channels: color: WHITE default: true ignorable: true - distance: 0 \ No newline at end of file + distance: -1 # Set to -1, comment out, or remove to disable distance checking \ No newline at end of file