commit 00ce8caa9446d85a4180a3ee4a7e316abc883ea3 Author: ColdDev Date: Sun Oct 23 21:48:13 2022 +0100 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e34c966 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +out/ +target/ +dependency-reduced-pom.xml diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..04bf3a3 --- /dev/null +++ b/pom.xml @@ -0,0 +1,92 @@ + + + 4.0.0 + + darverdevs + Uranium + 1.0-LITE + + + 11 + 11 + UTF-8 + + + + + spigot-repo + https://hub.spigotmc.org/nexus/content/repositories/snapshots/ + + + placeholderapi + https://repo.extendedclip.com/content/repositories/placeholderapi/ + + + + + + org.spigotmc + spigot-api + 1.8.8-R0.1-SNAPSHOT + provided + + + org.bukkit + bukkit + 1.8.8-R0.1-SNAPSHOT + provided + + + me.clip + placeholderapi + 2.11.2 + provided + + + org.xerial + sqlite-jdbc + 3.39.3.0 + + + club.minnced + discord-webhooks + 0.8.2 + + + + + + + org.apache.maven.plugins + maven-shade-plugin + 3.3.0 + + + package + + shade + + + + ${project.basedir}/out/${project.artifactId}.jar + true + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.8.1 + + 1.8 + 1.8 + + + + + + \ No newline at end of file diff --git a/src/main/java/darverdevs/Main.java b/src/main/java/darverdevs/Main.java new file mode 100644 index 0000000..b9c6def --- /dev/null +++ b/src/main/java/darverdevs/Main.java @@ -0,0 +1,16 @@ +package darverdevs; + +import org.bukkit.plugin.java.JavaPlugin; + +public class Main extends JavaPlugin { + + public void onEnable() { + setupConfig(); + } + + private void setupConfig() { + getConfig().options().copyDefaults(true); + saveConfig(); + } + +} \ No newline at end of file diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml new file mode 100644 index 0000000..69cd08f --- /dev/null +++ b/src/main/resources/config.yml @@ -0,0 +1,35 @@ +chat-filter: + # Should we enable the chat filter? + enabled: true + # Should usernames be checked on join? + check-usernames: 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: '' \ No newline at end of file diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml new file mode 100644 index 0000000..3998e41 --- /dev/null +++ b/src/main/resources/plugin.yml @@ -0,0 +1,6 @@ +name: Uranium +version: 1.0.0-LITE +main: darverdevs.Main +description: A moderation utility for Eaglercraft 1.8 servers. +author: Cold +softdepend: [PlaceholderAPI] \ No newline at end of file