Add utils for future plugins

This commit is contained in:
Lncvrt committed 2025-08-16 16:32:11 -07:00
1 parent 73f0b8ee9c
commit 80d2c857fc
12 files changed
+233 -77

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
plugins {
id 'java'
}
dependencies {
compileOnly(files('../libs/craftbukkit-1.6.4-R2.0.jar'))
}
def targetJavaVersion = 8
java {
def javaVersion = JavaVersion.toVersion(targetJavaVersion)
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
if (JavaVersion.current() < javaVersion) {
toolchain.languageVersion = JavaLanguageVersion.of(targetJavaVersion)
}
}
tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8'
if (targetJavaVersion >= 10 || JavaVersion.current().isJava10Compatible()) {
options.release.set(targetJavaVersion)
}
}
@@ -0,0 +1,8 @@
package xyz.lncvrt.legacycraftplugins.utils;
import org.bukkit.ChatColor;
public final class Messages {
public static String rules = ChatColor.GOLD + "Server Rules\n1. No Griefing\n2. No Stealing\n3. No random killing\n4. Be kind in chat\n5. No saying slurs in chat\n6. No Exploiting\n7. No Duping\n8. No Hacking";
public static String discord = ChatColor.GOLD + "Discord Invite: https://discord.gg/mVj6Rem5fM";
}