mirror of
https://github.com/darverdevs/Uranium.git
synced 2024-12-21 22:54:10 -08:00
fix(config): restructure config file to fix weird bug with comments
This commit is contained in:
parent
f67c980dd4
commit
383c8f8727
2
pom.xml
2
pom.xml
|
@ -72,7 +72,7 @@
|
||||||
|
|
||||||
<configuration>
|
<configuration>
|
||||||
<outputFile>${project.basedir}/out/${project.artifactId}.jar</outputFile>
|
<outputFile>${project.basedir}/out/${project.artifactId}.jar</outputFile>
|
||||||
<minimizeJar>true</minimizeJar>
|
<minimizeJar>false</minimizeJar>
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
|
|
|
@ -11,6 +11,8 @@ import uranium.listeners.*;
|
||||||
import uranium.tasks.IPCheck;
|
import uranium.tasks.IPCheck;
|
||||||
import uranium.user.*;
|
import uranium.user.*;
|
||||||
|
|
||||||
|
import java.io.File;
|
||||||
|
|
||||||
public class Main extends JavaPlugin implements PluginMessageListener {
|
public class Main extends JavaPlugin implements PluginMessageListener {
|
||||||
|
|
||||||
public void onEnable() {
|
public void onEnable() {
|
||||||
|
@ -59,7 +61,7 @@ public class Main extends JavaPlugin implements PluginMessageListener {
|
||||||
private void setupConfig() {
|
private void setupConfig() {
|
||||||
getLogger().info("Initializing config...");
|
getLogger().info("Initializing config...");
|
||||||
getConfig().options().copyDefaults(true);
|
getConfig().options().copyDefaults(true);
|
||||||
saveConfig();
|
saveDefaultConfig();
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("UnstableApiUsage")
|
@SuppressWarnings("UnstableApiUsage")
|
||||||
|
|
|
@ -1,27 +1,58 @@
|
||||||
|
############ Explanation of Config Options ###############
|
||||||
|
# chat-filter:
|
||||||
|
# enabled: true
|
||||||
|
# # Should usernames be checked on join?
|
||||||
|
# check-usernames: true
|
||||||
|
# # Should we also check the contents of commands?
|
||||||
|
# check-commands: true
|
||||||
|
# # Should posting the same message twice in a row be allowed?
|
||||||
|
# double-posting: false
|
||||||
|
# # Should there be an enforced delay between messages?
|
||||||
|
# message-delay: true
|
||||||
|
# # What should the delay be for messages?
|
||||||
|
# message-cooldown: 1000
|
||||||
|
# # The list of words that should be prevented from being used
|
||||||
|
# banned-words:
|
||||||
|
# - poop
|
||||||
|
# suspicious-domains:
|
||||||
|
# # Should we check for suspicious domains?
|
||||||
|
# enabled: true
|
||||||
|
# # Should we notify if the user is using an offline download?
|
||||||
|
# offline-download: true
|
||||||
|
# # Should we notify if the user is using the debug runtime?
|
||||||
|
# debug-runtime: true
|
||||||
|
# # A list of trusted domains. These will not generate an alert
|
||||||
|
# trusted-domains:
|
||||||
|
# - 'precisionclient.vercel.app'
|
||||||
|
# - 'eaglercraft.org'
|
||||||
|
# - 'eaglercraft.us'
|
||||||
|
# - 'eaglercraft.me'
|
||||||
|
# - 'eaglercraft.net'
|
||||||
|
# - 'g.deev.is'
|
||||||
|
# - 'g.lax1dude.net'
|
||||||
|
# # Should we send a notification to a Discord webhook when
|
||||||
|
# # a suspicious domain is detected?
|
||||||
|
# enable-webhook: false
|
||||||
|
# # Provide your Discord webhook URL here.
|
||||||
|
# webhook-url: ''
|
||||||
|
#
|
||||||
|
# Should we override the regular /banip, /ipban & /ban-ip commands with Uranium's version?
|
||||||
|
# override-ipban: true
|
||||||
|
# Main prefix
|
||||||
|
# prefix: '&8[&aUranium&8] &7'
|
||||||
chat-filter:
|
chat-filter:
|
||||||
# Should we enable the chat filter?
|
|
||||||
enabled: true
|
enabled: true
|
||||||
# Should usernames be checked on join?
|
|
||||||
check-usernames: true
|
check-usernames: true
|
||||||
# Should we also check the contents of commands?
|
|
||||||
check-commands: true
|
check-commands: true
|
||||||
# Should posting the same message twice in a row be allowed?
|
|
||||||
double-posting: false
|
double-posting: false
|
||||||
# Should there be an enforced delay between messages?
|
|
||||||
message-delay: true
|
message-delay: true
|
||||||
# What should the delay be for messages?
|
|
||||||
message-cooldown: 1000
|
message-cooldown: 1000
|
||||||
# The list of words that should be prevented from being used
|
|
||||||
banned-words:
|
banned-words:
|
||||||
- poop
|
- poop
|
||||||
suspicious-domains:
|
suspicious-domains:
|
||||||
# Should we check for suspicious domains?
|
|
||||||
enabled: true
|
enabled: true
|
||||||
# Should we notify if the user is using an offline download?
|
|
||||||
offline-download: true
|
offline-download: true
|
||||||
# Should we notify if the user is using the debug runtime?
|
|
||||||
debug-runtime: true
|
debug-runtime: true
|
||||||
# A list of trusted domains. These will not generate an alert
|
|
||||||
trusted-domains:
|
trusted-domains:
|
||||||
- 'precisionclient.vercel.app'
|
- 'precisionclient.vercel.app'
|
||||||
- 'eaglercraft.org'
|
- 'eaglercraft.org'
|
||||||
|
@ -30,13 +61,8 @@ suspicious-domains:
|
||||||
- 'eaglercraft.net'
|
- 'eaglercraft.net'
|
||||||
- 'g.deev.is'
|
- 'g.deev.is'
|
||||||
- 'g.lax1dude.net'
|
- 'g.lax1dude.net'
|
||||||
# Should we send a notification to a Discord webhook when
|
|
||||||
# a suspicious domain is detected?
|
|
||||||
enable-webhook: false
|
enable-webhook: false
|
||||||
# Provide your Discord webhook URL here.
|
|
||||||
webhook-url: ''
|
webhook-url: ''
|
||||||
|
|
||||||
# Should we override the regular /banip, /ipban & /ban-ip commands with Uranium's version?
|
|
||||||
override-ipban: true
|
override-ipban: true
|
||||||
# Main prefix
|
|
||||||
prefix: '&8[&aUranium&8] &7'
|
prefix: '&8[&aUranium&8] &7'
|
Loading…
Reference in New Issue
Block a user