Add utils for future plugins
This commit is contained in:
12 files changed
+233
-77
No files matched your search
@@ -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";
|
||||
}
|
||||
Reference in new issue
Block a user