mirror of
https://github.com/darverdevs/Uranium.git
synced 2024-12-03 05:54:18 -08:00
Initial commit
This commit is contained in:
commit
00ce8caa94
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
out/
|
||||
target/
|
||||
dependency-reduced-pom.xml
|
92
pom.xml
Normal file
92
pom.xml
Normal file
|
@ -0,0 +1,92 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<groupId>darverdevs</groupId>
|
||||
<artifactId>Uranium</artifactId>
|
||||
<version>1.0-LITE</version>
|
||||
|
||||
<properties>
|
||||
<maven.compiler.source>11</maven.compiler.source>
|
||||
<maven.compiler.target>11</maven.compiler.target>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
|
||||
<repositories>
|
||||
<repository>
|
||||
<id>spigot-repo</id>
|
||||
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
|
||||
</repository>
|
||||
<repository>
|
||||
<id>placeholderapi</id>
|
||||
<url>https://repo.extendedclip.com/content/repositories/placeholderapi/</url>
|
||||
</repository>
|
||||
</repositories>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.spigotmc</groupId>
|
||||
<artifactId>spigot-api</artifactId>
|
||||
<version>1.8.8-R0.1-SNAPSHOT</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.bukkit</groupId>
|
||||
<artifactId>bukkit</artifactId>
|
||||
<version>1.8.8-R0.1-SNAPSHOT</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>me.clip</groupId>
|
||||
<artifactId>placeholderapi</artifactId>
|
||||
<version>2.11.2</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.xerial</groupId>
|
||||
<artifactId>sqlite-jdbc</artifactId>
|
||||
<version>3.39.3.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>club.minnced</groupId>
|
||||
<artifactId>discord-webhooks</artifactId>
|
||||
<version>0.8.2</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-shade-plugin</artifactId>
|
||||
<version>3.3.0</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>shade</goal>
|
||||
</goals>
|
||||
|
||||
<configuration>
|
||||
<outputFile>${project.basedir}/out/${project.artifactId}.jar</outputFile>
|
||||
<minimizeJar>true</minimizeJar>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>3.8.1</version>
|
||||
<configuration>
|
||||
<source>1.8</source>
|
||||
<target>1.8</target>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
16
src/main/java/darverdevs/Main.java
Normal file
16
src/main/java/darverdevs/Main.java
Normal file
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
35
src/main/resources/config.yml
Normal file
35
src/main/resources/config.yml
Normal file
|
@ -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: ''
|
6
src/main/resources/plugin.yml
Normal file
6
src/main/resources/plugin.yml
Normal file
|
@ -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]
|
Loading…
Reference in New Issue
Block a user