diff --git a/.gitignore b/.gitignore index c4a2af9..b620d62 100644 --- a/.gitignore +++ b/.gitignore @@ -19,7 +19,8 @@ # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml hs_err_pid* -.gradle/4.3.1/ +.gradle .idea target -TabooLib.iml \ No newline at end of file +TabooLib.iml +build \ No newline at end of file diff --git a/TabooLib.iml b/TabooLib.iml deleted file mode 100644 index 6b0e5b3..0000000 --- a/TabooLib.iml +++ /dev/null @@ -1,133 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/build.gradle b/build.gradle new file mode 100644 index 0000000..600dfad --- /dev/null +++ b/build.gradle @@ -0,0 +1,45 @@ +plugins { + id 'java' + id 'scala' + id 'idea' + id 'com.github.johnrengelman.shadow' version '4.0.4' +} + +group = 'me.skymc' +version = '4.73' + +sourceCompatibility = 1.8 +targetCompatibility = 1.8 + +defaultTasks 'build', 'shadowJar' + +tasks.withType(ScalaCompile) { + options.encoding = 'UTF-8' + scalaCompileOptions.encoding = 'UTF-8' +} + +repositories { + mavenCentral() + maven { url "http://repo.extendedclip.com/content/repositories/placeholderapi/" } +} + +dependencies { + shadow(group: 'org.apache.cassandra', name: 'cassandra-all', version: '0.8.1') { + exclude(module: 'slf4j-log4j12') + exclude(module: 'log4j') + } + compile group: 'com.google.code.gson', name: 'gson', version: '2.7' + shadow group: 'com.zaxxer', name: 'HikariCP', version: '3.1.0' + shadow group: 'org.javalite', name: 'activejdbc', version: '2.0' + shadow group: 'com.h2database', name: 'h2', version: '1.4.197' + compile group: 'org.ow2.asm', name: 'asm', version: '6.1.1' + shadow group: 'me.clip', name: 'placeholderapi', version: '2.8.4' + shadow group: 'net.objecthunter', name: 'exp4j', version: '0.4.8' + shadow group: 'org.scala-lang', name: 'scala-library', version: '2.12.8' + shadow fileTree(dir: 'libs', includes: ['*.jar']) +} + +shadowJar { + // 免得 MANIFEST.MF 里面刷一堆 lib 难看 + taskActions.removeIf { it.actionClassName.contains 'configureShadowTask' } +} \ No newline at end of file diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 0000000..6b6ea3a Binary files /dev/null and b/gradle/wrapper/gradle-wrapper.jar differ diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000..fa0d17b --- /dev/null +++ b/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,6 @@ +#Sat Mar 02 13:40:08 CST 2019 +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists +distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip diff --git a/gradlew b/gradlew new file mode 100644 index 0000000..cccdd3d --- /dev/null +++ b/gradlew @@ -0,0 +1,172 @@ +#!/usr/bin/env sh + +############################################################################## +## +## Gradle start up script for UN*X +## +############################################################################## + +# Attempt to set APP_HOME +# Resolve links: $0 may be a link +PRG="$0" +# Need this for relative symlinks. +while [ -h "$PRG" ] ; do + ls=`ls -ld "$PRG"` + link=`expr "$ls" : '.*-> \(.*\)$'` + if expr "$link" : '/.*' > /dev/null; then + PRG="$link" + else + PRG=`dirname "$PRG"`"/$link" + fi +done +SAVED="`pwd`" +cd "`dirname \"$PRG\"`/" >/dev/null +APP_HOME="`pwd -P`" +cd "$SAVED" >/dev/null + +APP_NAME="Gradle" +APP_BASE_NAME=`basename "$0"` + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS="" + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD="maximum" + +warn () { + echo "$*" +} + +die () { + echo + echo "$*" + echo + exit 1 +} + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "`uname`" in + CYGWIN* ) + cygwin=true + ;; + Darwin* ) + darwin=true + ;; + MINGW* ) + msys=true + ;; + NONSTOP* ) + nonstop=true + ;; +esac + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD="$JAVA_HOME/jre/sh/java" + else + JAVACMD="$JAVA_HOME/bin/java" + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD="java" + which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." +fi + +# Increase the maximum file descriptors if we can. +if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then + MAX_FD_LIMIT=`ulimit -H -n` + if [ $? -eq 0 ] ; then + if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then + MAX_FD="$MAX_FD_LIMIT" + fi + ulimit -n $MAX_FD + if [ $? -ne 0 ] ; then + warn "Could not set maximum file descriptor limit: $MAX_FD" + fi + else + warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" + fi +fi + +# For Darwin, add options to specify how the application appears in the dock +if $darwin; then + GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" +fi + +# For Cygwin, switch paths to Windows format before running java +if $cygwin ; then + APP_HOME=`cygpath --path --mixed "$APP_HOME"` + CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` + JAVACMD=`cygpath --unix "$JAVACMD"` + + # We build the pattern for arguments to be converted via cygpath + ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` + SEP="" + for dir in $ROOTDIRSRAW ; do + ROOTDIRS="$ROOTDIRS$SEP$dir" + SEP="|" + done + OURCYGPATTERN="(^($ROOTDIRS))" + # Add a user-defined pattern to the cygpath arguments + if [ "$GRADLE_CYGPATTERN" != "" ] ; then + OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" + fi + # Now convert the arguments - kludge to limit ourselves to /bin/sh + i=0 + for arg in "$@" ; do + CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` + CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option + + if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition + eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` + else + eval `echo args$i`="\"$arg\"" + fi + i=$((i+1)) + done + case $i in + (0) set -- ;; + (1) set -- "$args0" ;; + (2) set -- "$args0" "$args1" ;; + (3) set -- "$args0" "$args1" "$args2" ;; + (4) set -- "$args0" "$args1" "$args2" "$args3" ;; + (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; + (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; + (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; + (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; + (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; + esac +fi + +# Escape application args +save () { + for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done + echo " " +} +APP_ARGS=$(save "$@") + +# Collect all arguments for the java command, following the shell quoting and substitution rules +eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" + +# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong +if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then + cd "$(dirname "$0")" +fi + +exec "$JAVACMD" "$@" diff --git a/gradlew.bat b/gradlew.bat new file mode 100644 index 0000000..f955316 --- /dev/null +++ b/gradlew.bat @@ -0,0 +1,84 @@ +@if "%DEBUG%" == "" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +set DIRNAME=%~dp0 +if "%DIRNAME%" == "" set DIRNAME=. +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS= + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if "%ERRORLEVEL%" == "0" goto init + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto init + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:init +@rem Get command-line arguments, handling Windows variants + +if not "%OS%" == "Windows_NT" goto win9xME_args + +:win9xME_args +@rem Slurp the command line arguments. +set CMD_LINE_ARGS= +set _SKIP=2 + +:win9xME_args_slurp +if "x%~1" == "x" goto execute + +set CMD_LINE_ARGS=%* + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% + +:end +@rem End local scope for the variables with windows NT shell +if "%ERRORLEVEL%"=="0" goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 +exit /b 1 + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/pom.xml b/pom.xml deleted file mode 100644 index 4af742a..0000000 --- a/pom.xml +++ /dev/null @@ -1,263 +0,0 @@ - - - 4.0.0 - - me.skymc - TabooLib - 4.73 - - - UTF-8 - - - clean install package - - - src/main/resources - true - - - src/main/java - - - org.apache.maven.plugins - maven-dependency-plugin - - - org.apache.maven.plugins - maven-compiler-plugin - 3.7.0 - - 1.8 - 1.8 - false - true - - - - org.apache.maven.plugins - maven-resources-plugin - 3.0.1 - - UTF-8 - false - - jar - - - - - net.alchim31.maven - scala-maven-plugin - 3.4.2 - - - - - - - - - - - org.apache.maven.plugins - maven-jar-plugin - - - - me.skymc.taboolib.socket.TabooLibServer - - - - - - org.apache.maven.plugins - maven-shade-plugin - 3.0.0 - - - package - - shade - - - - - com.ilummc.eagletdl - org.ow2.asm - com.google.code.gson - net.objecthunter - - - false - - - - - - - - - placeholderapi - http://repo.extendedclip.com/content/repositories/placeholderapi/ - - - - - org.apache.cassandra - cassandra-all - 0.8.1 - - - org.slf4j - slf4j-log4j12 - - - log4j - log4j - - - - - com.google.code.gson - gson - 2.7 - - - com.zaxxer - HikariCP - 3.1.0 - - - org.javalite - activejdbc - 2.0 - - - com.h2database - h2 - 1.4.197 - - - org.ow2.asm - asm - 6.1.1 - - - me.clip - placeholderapi - 2.8.4 - - - org.scala-lang - scala-library - 2.12.7 - - - net.objecthunter - exp4j - 0.4.8 - - - bukkit - bukkit1_12 - 1 - system - ${basedir}/libs/1_12_R1.jar - - - bukkit - bukkit1_8 - 1 - system - ${basedir}/libs/1_8_R3.jar - - - bungeecord - bungeecord - 1 - system - ${basedir}/libs/BungeeCord.jar - - - com.sun.tools - jshell - 1 - system - ${basedir}/libs/com.sun.tools.jar - - - taboocode - taboocode - 1 - system - ${basedir}/libs/TabooCode5.jar - - - yum - yum - 1 - system - ${basedir}/libs/Yum.jar - - - plib - plib - 1 - system - ${basedir}/libs/ProtocolLib.jar - - - wg - wg - 1 - system - ${basedir}/libs/WorldGuard.jar - - - sk - sk - 1 - system - ${basedir}/libs/Skript.jar - - - vault - vault - 1 - system - ${basedir}/libs/Vault.jar - - - bossbar - bossbar - 1 - system - ${basedir}/libs/BossBarAPI.jar - - - viaversion - viaversion - 1 - system - ${basedir}/libs/ViaVersion.jar - - - protocolsupport - protocolsupport - 1 - system - ${basedir}/libs/ProtocolSupport.jar - - - deprecated - deprecated - 1 - system - ${basedir}/libs/TabooLibDeprecated.jar - - - - \ No newline at end of file diff --git a/settings.gradle b/settings.gradle new file mode 100644 index 0000000..5b6e6b0 --- /dev/null +++ b/settings.gradle @@ -0,0 +1 @@ +rootProject.name = 'TabooLib' diff --git a/src/main/java/org/javalite/activejdbc/MetaModel.java b/src/main/java/org/javalite/activejdbc/MetaModel.java deleted file mode 100644 index 55657bf..0000000 --- a/src/main/java/org/javalite/activejdbc/MetaModel.java +++ /dev/null @@ -1,514 +0,0 @@ -/* -Copyright 2009-2018 Igor Polevoy - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - -http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package org.javalite.activejdbc; - -import org.bukkit.plugin.Plugin; -import org.javalite.activejdbc.annotations.*; -import org.javalite.activejdbc.associations.Many2ManyAssociation; -import org.javalite.activejdbc.associations.OneToManyAssociation; -import org.javalite.activejdbc.associations.OneToManyPolymorphicAssociation; -import org.javalite.activejdbc.dialects.Dialect; -import org.javalite.activejdbc.logging.LogFilter; -import org.javalite.activejdbc.logging.LogLevel; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -import java.io.Serializable; -import java.lang.reflect.Field; -import java.util.*; -import java.util.Map.Entry; - -import static org.javalite.common.Inflector.singularize; -import static org.javalite.common.Inflector.tableize; - - -public class MetaModel implements Serializable { - private static final Logger LOGGER = LoggerFactory.getLogger(MetaModel.class); - private static final ThreadLocal> shardingTableNamesTL = new ThreadLocal<>(); - private final List associations = new ArrayList<>(); - private final String idName; - private final String[] compositeKeys; - private final String tableName, dbType, dbName; - private final Class modelClass; - private final boolean cached; - private final String idGeneratorCode; - private final String versionColumn; - private Map columnMetadata; - private Set attributeNamesNoId; - private String[] partitionIDs = null; - - protected MetaModel(String dbName, Class modelClass, String dbType) { - this.modelClass = modelClass; - this.idName = findIdName(modelClass); - this.compositeKeys = findCompositeKeys(modelClass); - this.tableName = findTableName(modelClass); - this.dbType = dbType; - this.cached = isCached(modelClass); - this.dbName = dbName; - this.idGeneratorCode = findIdGeneratorCode(modelClass); - this.versionColumn = findVersionColumn(modelClass); - this.partitionIDs = findPartitionIDs(); - } - - static Map getTableNamesMap() { - if (shardingTableNamesTL.get() == null) { - shardingTableNamesTL.set(new HashMap<>()); - } - return shardingTableNamesTL.get(); - } - - protected static String getDbName(Class modelClass) { - DbName dbNameAnnotation = modelClass.getAnnotation(DbName.class); - return dbNameAnnotation == null ? DB.DEFAULT_NAME : dbNameAnnotation.value(); - } - - private String[] findPartitionIDs() { - PartitionIDs partitionIDs = modelClass.getAnnotation(PartitionIDs.class); - return partitionIDs != null ? partitionIDs.value() : null; - } - - public boolean hasPartitionIDs() { - return partitionIDs != null; - } - - public String[] getPartitionIDs() { - return partitionIDs; - } - - /** - *

- * This feature is for sharding! - *
- * Do not use it to set table names willy-nilly! - *

- * - *

- * Sets a table name for this model. The table name is attached to a current thread and will remain there - * until it is set with a different value or cleared with {@link #clearShardTableName()} method. - * Table name set with this method overrides a table name naturally mapped to this model. - *

- *

- * Method {@link #getTableName()} will return this value for all operations related to this table. - *

- * - * @param tableName name of a table this model will read from current thread. - */ - public void setShardTableName(String tableName) { - getTableNamesMap().put(modelClass, tableName); - } - - /** - * Clears sharding name of table attached to current thread. - * The name was supposedly attached by the {@link #setShardTableName(String)} - * method. After execution of this class, the method {@link #getTableName()} will be - * returning the value this {@link MetaModel} was initialized with during teh bootstrap phase. - */ - public void clearShardTableName() { - getTableNamesMap().remove(modelClass); - } - - private boolean isCached(Class modelClass) { - return null != modelClass.getAnnotation(Cached.class); - } - - private String findIdName(Class modelClass) { - IdName idNameAnnotation = modelClass.getAnnotation(IdName.class); - return idNameAnnotation == null ? "id" : idNameAnnotation.value(); - } - - private String[] findCompositeKeys(Class modelClass) { - CompositePK compositeKeysAnnotation = modelClass.getAnnotation(CompositePK.class); - return compositeKeysAnnotation == null ? null : compositeKeysAnnotation.value(); - } - - /** - * Table name with plugin name prefix - * - * @return table name - */ - private String findTableName(Class modelClass) { - Table tableAnnotation = modelClass.getAnnotation(Table.class); - String prefix = ""; - try { - Field field = modelClass.getClassLoader().getClass().getDeclaredField("plugin"); - field.setAccessible(true); - Plugin plugin = (Plugin) field.get(modelClass.getClassLoader()); - prefix = tableize(plugin.getName()) + "_"; - } catch (Throwable ignored) { - } - return prefix + (tableAnnotation == null ? tableize(modelClass.getSimpleName()) : tableAnnotation.value()); - } - - private String findIdGeneratorCode(Class modelClass) { - IdGenerator idGenerator = modelClass.getAnnotation(IdGenerator.class); - return idGenerator == null ? null : idGenerator.value(); - } - - private String findVersionColumn(Class modelClass) { - VersionColumn vc = modelClass.getAnnotation(VersionColumn.class); - return vc == null ? "record_version" : vc.value(); - } - - /** - * @return name of the column for optimistic locking record version - */ - public String getVersionColumn() { - return versionColumn; - } - - public String getIdGeneratorCode() { - return idGeneratorCode; - } - - public String getDbName() { - return dbName; - } - - public boolean cached() { - return cached; - } - - public Class getModelClass() { - return modelClass; - } - - /** - * Returns table name currently associated with this model. - * Table name can be modified for sharding using {@link #setShardTableName(String)} - * - * @return table name currently associated with this model. - */ - public String getTableName() { - return getTableNamesMap().getOrDefault(modelClass, tableName); - } - - protected boolean tableExists() { - return columnMetadata != null && columnMetadata.isEmpty(); - } - - - /** - * Finds all attribute names except for id. - * - * @return all attribute names except for id. - */ - public Set getAttributeNamesSkipId() { - if (attributeNamesNoId == null) {//no one cares about unfortunate multi-threading timing with 2 instances created - //if someone does, use DCL with volatile - Set attributesNames = new CaseInsensitiveSet(getAttributeNames()); - attributesNames.remove(getIdName()); - attributeNamesNoId = attributesNames; - } - return attributeNamesNoId; - } - - /** - * Convenience method. Calls {@link #getAttributeNamesSkipGenerated(boolean)} and passes true as argument. - * - * @return list of all attributes except id, created_at, updated_at and record_version. - */ - public Set getAttributeNamesSkipGenerated() { - return getAttributeNamesSkipGenerated(true); - } - - /** - * Finds all attribute names except managed like id, - * created_at, updated_at and record_version, depending on argument. - * - * @param managed if true, time managed attributes created_at and updated_at will not be included (they are managed automatically). - * If false (not managed) created_at and updated_at will be included in output. - * @return list of all attributes except id, created_at, updated_at and - * record_version, depending on argument. - */ - public Set getAttributeNamesSkipGenerated(boolean managed) { - //TODO: can cache this, but will need a cache for managed=true an another for managed=false - Set attributesNames = new CaseInsensitiveSet(getAttributeNamesSkipId()); - - if (managed) { - attributesNames.remove("created_at"); - attributesNames.remove("updated_at"); - } - - attributesNames.remove(versionColumn); - return attributesNames; - } - - - /** - * Finds all attribute names except those provided as arguments. - * - * @return list of all attributes except those provided as arguments. - */ - public Set getAttributeNamesSkip(String... names) { - Set attributes = new CaseInsensitiveSet(getAttributeNames()); - for (String name : names) { - attributes.remove(name); - } - return attributes; - } - - /** - * Returns true if this model supports optimistic locking, false if not - * - * @return true if this model supports optimistic locking, false if not - */ - public boolean isVersioned() { - return columnMetadata != null && columnMetadata.containsKey(versionColumn); - } - - /** - * Retrieves all attribute names. - * - * @return all attribute names. - */ - protected Set getAttributeNames() { - if (columnMetadata == null || columnMetadata.isEmpty()) { - throw new InitException("Failed to find table: " + getTableName()); - } - return Collections.unmodifiableSet(columnMetadata.keySet()); - } - - public String getIdName() { - return idName; - } - - /** - * Returns optional composite primary key class - * - * @return composite primary key class - */ - public String[] getCompositeKeys() { - return compositeKeys; - } - - /** - * Returns association of this table with the target table. Will return null if there is no association. - * - * @param targetModelClass association of this model and the target model. - * @param associationClass class of association in requested. - * @return association of this table with the target table. Will return null if there is no association with target - * table and specified type. - */ - public A getAssociationForTarget(Class targetModelClass, Class associationClass) { - Association result = null; - for (Association association : associations) { - if (association.getClass().equals(associationClass) && association.getTargetClass().equals(targetModelClass)) { - result = association; - break; - } - } - return (A) result; - } - - - /** - * Returns association of this table with the target table. Will return null if there is no association. - * - * @param targetClass association of this model and the target model. - * @return association of this table with the target table. Will return null if there is no association with target - * table and specified type. - */ - public A getAssociationForTarget(Class targetClass) { - Association result = null; - for (Association association : associations) { - if (association.getTargetClass().equals(targetClass)) { - result = association; - break; - } - } - return (A) result; - } - - - /** - * Returns associations of this table with the target table. It is possible - * to have more than one association to a target table if a target table is the same as source. Usually this - * happens when tree structures are stored in the same table (category has many categories). - * - * @param targetModelClass association of this model and the target model. - * @return list of associations of this table with the target table. Will return empty list if none found. - * table and specified type. - */ - public List getAssociationsForTarget(Class targetModelClass) { - List result = new ArrayList<>(); - - for (Association association : associations) { - if (association.getTargetClass().equals(targetModelClass)) { - result.add(association); - } - } - return result; - } - - protected void addAssociation(Association association) { - if (!associations.contains(association)) { - LogFilter.log(LOGGER, LogLevel.INFO, "Association found: {}", association); - associations.add(association); - } - } - - /** - * returns true if this attribute is present in this meta model. This method i case insensitive. - * - * @param attribute attribute name, case insensitive. - * @return true if this attribute is present in this meta model, false of not. - */ - boolean hasAttribute(String attribute) { - if (columnMetadata != null) { - if (columnMetadata.containsKey(attribute)) { - return true; - } else if (attribute.startsWith("\"") && attribute.endsWith("\"")) { - return columnMetadata.containsKey(attribute.substring(1, attribute.length() - 1)); - } - } - return false; - } - - protected boolean hasAssociation(Class targetClass, Class associationClass) { - for (Association association : associations) { - if (association.getTargetClass().equals(targetClass) && - association.getClass().equals(associationClass)) { - return true; - } - } - return false; - } - - @Override - public String toString() { - final StringBuilder t = new StringBuilder(); - t.append("MetaModel: ").append(tableName).append(", ").append(modelClass).append("\n"); - if (columnMetadata != null) { - for (Entry metadata : columnMetadata.entrySet()) { - t.append(metadata.getValue()).append(", "); - } - } - - return t.toString(); - } - - /** - * FK name is a foreign key name used in relationships as a foreign key column in a child table (table represented by this - * instance is a parent table). - * The FK name is derived using {@link org.javalite.common.Inflector}: It is a singular version of this table name plus "_id". - * - * @return foreign key name used in relationships as a foreign key column in a child table. - */ - public String getFKName() { - return singularize(getTableName()).toLowerCase() + "_id"; - } - - protected List getOneToManyAssociations(List exclusions) { - List one2Manies = new ArrayList<>(); - for (Association association : associations) { - if (association.getClass().equals(OneToManyAssociation.class) && !exclusions.contains(association)) { - one2Manies.add((OneToManyAssociation) association); - } - } - return one2Manies; - } - - protected List getPolymorphicAssociations(List exclusions) { - List one2Manies = new ArrayList<>(); - for (Association association : associations) { - if (association.getClass().equals(OneToManyPolymorphicAssociation.class) && !exclusions.contains(association)) { - one2Manies.add((OneToManyPolymorphicAssociation) association); - } - } - return one2Manies; - } - - protected List getManyToManyAssociations(List excludedAssociations) { - List many2Manies = new ArrayList<>(); - for (Association association : associations) { - if (association.getClass().equals(Many2ManyAssociation.class) && !excludedAssociations.contains(association)) { - many2Manies.add((Many2ManyAssociation) association); - } - } - return many2Manies; - } - - public String getDbType() { - return dbType; - } - - public Dialect getDialect() { - return Registry.instance().getConfiguration().getDialect(this); - } - - protected List getAssociations() { - return Collections.unmodifiableList(associations); - } - - /** - * Checks if this model has a named attribute that has the same name as argument. - *

- * Throws IllegalArgumentException in case it does not find it. - * - * @param attribute name of attribute or association target. - */ - protected void checkAttribute(String attribute) { - if (!hasAttribute(attribute)) { - String sb = "Attribute: '" + attribute + "' is not defined in model: '" + getModelClass() + ". " - + "Available attributes: " + getAttributeNames(); - throw new IllegalArgumentException(sb); - } - } - - /** - * Provides column metadata map, keyed by attribute names. - * Table columns correspond to ActiveJDBC model attributes. - * - * @return Provides column metadata map, keyed by attribute names. - */ - public Map getColumnMetadata() { - if (columnMetadata == null || columnMetadata.isEmpty()) { - throw new InitException("Failed to find table: " + getTableName()); - } - return Collections.unmodifiableMap(columnMetadata); - } - - void setColumnMetadata(Map columnMetadata) { - this.columnMetadata = columnMetadata; - } - - /** - * Checks if there is association to the target model class., - * - * @param targetModelClass class of a model that will be checked for association from current model. - * @return true if any association exists such that the current model is a source and targetModelClass is a target. - */ - public boolean isAssociatedTo(Class targetModelClass) { - - if (targetModelClass == null) { - throw new NullPointerException(); - } - - for (Association association : associations) { - if (association.getTargetClass().equals(targetModelClass)) { - return true; - } - } - return false; - } - - public void removeAssociationForTarget(Class modelClass) { - Association association = getAssociationForTarget(modelClass); - if (association != null) { - associations.remove(association); - } - } -} diff --git a/src/main/resources/Addons/TabooLibDeprecated.jar b/src/main/resources/Addons/TabooLibDeprecated similarity index 100% rename from src/main/resources/Addons/TabooLibDeprecated.jar rename to src/main/resources/Addons/TabooLibDeprecated diff --git a/src/main/java/com/ilummc/eagletdl/AlreadyStartException.java b/src/main/scala/com/ilummc/eagletdl/AlreadyStartException.java similarity index 100% rename from src/main/java/com/ilummc/eagletdl/AlreadyStartException.java rename to src/main/scala/com/ilummc/eagletdl/AlreadyStartException.java diff --git a/src/main/java/com/ilummc/eagletdl/CompleteEvent.java b/src/main/scala/com/ilummc/eagletdl/CompleteEvent.java similarity index 100% rename from src/main/java/com/ilummc/eagletdl/CompleteEvent.java rename to src/main/scala/com/ilummc/eagletdl/CompleteEvent.java diff --git a/src/main/java/com/ilummc/eagletdl/ConnectedEvent.java b/src/main/scala/com/ilummc/eagletdl/ConnectedEvent.java similarity index 100% rename from src/main/java/com/ilummc/eagletdl/ConnectedEvent.java rename to src/main/scala/com/ilummc/eagletdl/ConnectedEvent.java diff --git a/src/main/java/com/ilummc/eagletdl/DoNotSupportMultipleThreadException.java b/src/main/scala/com/ilummc/eagletdl/DoNotSupportMultipleThreadException.java similarity index 100% rename from src/main/java/com/ilummc/eagletdl/DoNotSupportMultipleThreadException.java rename to src/main/scala/com/ilummc/eagletdl/DoNotSupportMultipleThreadException.java diff --git a/src/main/java/com/ilummc/eagletdl/EagletHandler.java b/src/main/scala/com/ilummc/eagletdl/EagletHandler.java similarity index 100% rename from src/main/java/com/ilummc/eagletdl/EagletHandler.java rename to src/main/scala/com/ilummc/eagletdl/EagletHandler.java diff --git a/src/main/java/com/ilummc/eagletdl/EagletTask.java b/src/main/scala/com/ilummc/eagletdl/EagletTask.java similarity index 100% rename from src/main/java/com/ilummc/eagletdl/EagletTask.java rename to src/main/scala/com/ilummc/eagletdl/EagletTask.java diff --git a/src/main/java/com/ilummc/eagletdl/ErrorEvent.java b/src/main/scala/com/ilummc/eagletdl/ErrorEvent.java similarity index 100% rename from src/main/java/com/ilummc/eagletdl/ErrorEvent.java rename to src/main/scala/com/ilummc/eagletdl/ErrorEvent.java diff --git a/src/main/java/com/ilummc/eagletdl/HashNotMatchException.java b/src/main/scala/com/ilummc/eagletdl/HashNotMatchException.java similarity index 100% rename from src/main/java/com/ilummc/eagletdl/HashNotMatchException.java rename to src/main/scala/com/ilummc/eagletdl/HashNotMatchException.java diff --git a/src/main/java/com/ilummc/eagletdl/HashUtil.java b/src/main/scala/com/ilummc/eagletdl/HashUtil.java similarity index 100% rename from src/main/java/com/ilummc/eagletdl/HashUtil.java rename to src/main/scala/com/ilummc/eagletdl/HashUtil.java diff --git a/src/main/java/com/ilummc/eagletdl/ProgressEvent.java b/src/main/scala/com/ilummc/eagletdl/ProgressEvent.java similarity index 100% rename from src/main/java/com/ilummc/eagletdl/ProgressEvent.java rename to src/main/scala/com/ilummc/eagletdl/ProgressEvent.java diff --git a/src/main/java/com/ilummc/eagletdl/RetryFailedException.java b/src/main/scala/com/ilummc/eagletdl/RetryFailedException.java similarity index 100% rename from src/main/java/com/ilummc/eagletdl/RetryFailedException.java rename to src/main/scala/com/ilummc/eagletdl/RetryFailedException.java diff --git a/src/main/java/com/ilummc/eagletdl/SingleThreadDownload.java b/src/main/scala/com/ilummc/eagletdl/SingleThreadDownload.java similarity index 100% rename from src/main/java/com/ilummc/eagletdl/SingleThreadDownload.java rename to src/main/scala/com/ilummc/eagletdl/SingleThreadDownload.java diff --git a/src/main/java/com/ilummc/eagletdl/SplitDownload.java b/src/main/scala/com/ilummc/eagletdl/SplitDownload.java similarity index 100% rename from src/main/java/com/ilummc/eagletdl/SplitDownload.java rename to src/main/scala/com/ilummc/eagletdl/SplitDownload.java diff --git a/src/main/java/com/ilummc/eagletdl/StartEvent.java b/src/main/scala/com/ilummc/eagletdl/StartEvent.java similarity index 100% rename from src/main/java/com/ilummc/eagletdl/StartEvent.java rename to src/main/scala/com/ilummc/eagletdl/StartEvent.java diff --git a/src/main/java/com/ilummc/tlib/ExampleMain.java b/src/main/scala/com/ilummc/tlib/ExampleMain.java similarity index 100% rename from src/main/java/com/ilummc/tlib/ExampleMain.java rename to src/main/scala/com/ilummc/tlib/ExampleMain.java diff --git a/src/main/java/com/ilummc/tlib/TLib.java b/src/main/scala/com/ilummc/tlib/TLib.java similarity index 100% rename from src/main/java/com/ilummc/tlib/TLib.java rename to src/main/scala/com/ilummc/tlib/TLib.java diff --git a/src/main/java/com/ilummc/tlib/annotations/Dependencies.java b/src/main/scala/com/ilummc/tlib/annotations/Dependencies.java similarity index 100% rename from src/main/java/com/ilummc/tlib/annotations/Dependencies.java rename to src/main/scala/com/ilummc/tlib/annotations/Dependencies.java diff --git a/src/main/java/com/ilummc/tlib/annotations/Dependency.java b/src/main/scala/com/ilummc/tlib/annotations/Dependency.java similarity index 100% rename from src/main/java/com/ilummc/tlib/annotations/Dependency.java rename to src/main/scala/com/ilummc/tlib/annotations/Dependency.java diff --git a/src/main/java/com/ilummc/tlib/annotations/Logger.java b/src/main/scala/com/ilummc/tlib/annotations/Logger.java similarity index 100% rename from src/main/java/com/ilummc/tlib/annotations/Logger.java rename to src/main/scala/com/ilummc/tlib/annotations/Logger.java diff --git a/src/main/java/com/ilummc/tlib/annotations/PluginInstance.java b/src/main/scala/com/ilummc/tlib/annotations/PluginInstance.java similarity index 100% rename from src/main/java/com/ilummc/tlib/annotations/PluginInstance.java rename to src/main/scala/com/ilummc/tlib/annotations/PluginInstance.java diff --git a/src/main/java/com/ilummc/tlib/annotations/TConfig.java b/src/main/scala/com/ilummc/tlib/annotations/TConfig.java similarity index 100% rename from src/main/java/com/ilummc/tlib/annotations/TConfig.java rename to src/main/scala/com/ilummc/tlib/annotations/TConfig.java diff --git a/src/main/java/com/ilummc/tlib/annotations/TLocalePlugin.java b/src/main/scala/com/ilummc/tlib/annotations/TLocalePlugin.java similarity index 100% rename from src/main/java/com/ilummc/tlib/annotations/TLocalePlugin.java rename to src/main/scala/com/ilummc/tlib/annotations/TLocalePlugin.java diff --git a/src/main/java/com/ilummc/tlib/annotations/clr/CommandHandler.java b/src/main/scala/com/ilummc/tlib/annotations/clr/CommandHandler.java similarity index 100% rename from src/main/java/com/ilummc/tlib/annotations/clr/CommandHandler.java rename to src/main/scala/com/ilummc/tlib/annotations/clr/CommandHandler.java diff --git a/src/main/java/com/ilummc/tlib/annotations/clr/CommandHandlers.java b/src/main/scala/com/ilummc/tlib/annotations/clr/CommandHandlers.java similarity index 100% rename from src/main/java/com/ilummc/tlib/annotations/clr/CommandHandlers.java rename to src/main/scala/com/ilummc/tlib/annotations/clr/CommandHandlers.java diff --git a/src/main/java/com/ilummc/tlib/annotations/clr/Sub.java b/src/main/scala/com/ilummc/tlib/annotations/clr/Sub.java similarity index 100% rename from src/main/java/com/ilummc/tlib/annotations/clr/Sub.java rename to src/main/scala/com/ilummc/tlib/annotations/clr/Sub.java diff --git a/src/main/java/com/ilummc/tlib/annotations/db/Database.java b/src/main/scala/com/ilummc/tlib/annotations/db/Database.java similarity index 100% rename from src/main/java/com/ilummc/tlib/annotations/db/Database.java rename to src/main/scala/com/ilummc/tlib/annotations/db/Database.java diff --git a/src/main/java/com/ilummc/tlib/annotations/db/DatabasePassword.java b/src/main/scala/com/ilummc/tlib/annotations/db/DatabasePassword.java similarity index 100% rename from src/main/java/com/ilummc/tlib/annotations/db/DatabasePassword.java rename to src/main/scala/com/ilummc/tlib/annotations/db/DatabasePassword.java diff --git a/src/main/java/com/ilummc/tlib/annotations/db/DatabaseType.java b/src/main/scala/com/ilummc/tlib/annotations/db/DatabaseType.java similarity index 100% rename from src/main/java/com/ilummc/tlib/annotations/db/DatabaseType.java rename to src/main/scala/com/ilummc/tlib/annotations/db/DatabaseType.java diff --git a/src/main/java/com/ilummc/tlib/annotations/db/DatabaseUrl.java b/src/main/scala/com/ilummc/tlib/annotations/db/DatabaseUrl.java similarity index 100% rename from src/main/java/com/ilummc/tlib/annotations/db/DatabaseUrl.java rename to src/main/scala/com/ilummc/tlib/annotations/db/DatabaseUrl.java diff --git a/src/main/java/com/ilummc/tlib/annotations/db/DatabaseUser.java b/src/main/scala/com/ilummc/tlib/annotations/db/DatabaseUser.java similarity index 100% rename from src/main/java/com/ilummc/tlib/annotations/db/DatabaseUser.java rename to src/main/scala/com/ilummc/tlib/annotations/db/DatabaseUser.java diff --git a/src/main/java/com/ilummc/tlib/annotations/db/SQLTable.java b/src/main/scala/com/ilummc/tlib/annotations/db/SQLTable.java similarity index 100% rename from src/main/java/com/ilummc/tlib/annotations/db/SQLTable.java rename to src/main/scala/com/ilummc/tlib/annotations/db/SQLTable.java diff --git a/src/main/java/com/ilummc/tlib/bean/Property.java b/src/main/scala/com/ilummc/tlib/bean/Property.java similarity index 100% rename from src/main/java/com/ilummc/tlib/bean/Property.java rename to src/main/scala/com/ilummc/tlib/bean/Property.java diff --git a/src/main/java/com/ilummc/tlib/bean/PropertyTypeAdaptor.java b/src/main/scala/com/ilummc/tlib/bean/PropertyTypeAdaptor.java similarity index 100% rename from src/main/java/com/ilummc/tlib/bean/PropertyTypeAdaptor.java rename to src/main/scala/com/ilummc/tlib/bean/PropertyTypeAdaptor.java diff --git a/src/main/java/com/ilummc/tlib/bungee/api/ChatColor.java b/src/main/scala/com/ilummc/tlib/bungee/api/ChatColor.java similarity index 100% rename from src/main/java/com/ilummc/tlib/bungee/api/ChatColor.java rename to src/main/scala/com/ilummc/tlib/bungee/api/ChatColor.java diff --git a/src/main/java/com/ilummc/tlib/bungee/api/ChatMessageType.java b/src/main/scala/com/ilummc/tlib/bungee/api/ChatMessageType.java similarity index 100% rename from src/main/java/com/ilummc/tlib/bungee/api/ChatMessageType.java rename to src/main/scala/com/ilummc/tlib/bungee/api/ChatMessageType.java diff --git a/src/main/java/com/ilummc/tlib/bungee/api/chat/BaseComponent.java b/src/main/scala/com/ilummc/tlib/bungee/api/chat/BaseComponent.java similarity index 100% rename from src/main/java/com/ilummc/tlib/bungee/api/chat/BaseComponent.java rename to src/main/scala/com/ilummc/tlib/bungee/api/chat/BaseComponent.java diff --git a/src/main/java/com/ilummc/tlib/bungee/api/chat/ClickEvent.java b/src/main/scala/com/ilummc/tlib/bungee/api/chat/ClickEvent.java similarity index 100% rename from src/main/java/com/ilummc/tlib/bungee/api/chat/ClickEvent.java rename to src/main/scala/com/ilummc/tlib/bungee/api/chat/ClickEvent.java diff --git a/src/main/java/com/ilummc/tlib/bungee/api/chat/ComponentBuilder.java b/src/main/scala/com/ilummc/tlib/bungee/api/chat/ComponentBuilder.java similarity index 100% rename from src/main/java/com/ilummc/tlib/bungee/api/chat/ComponentBuilder.java rename to src/main/scala/com/ilummc/tlib/bungee/api/chat/ComponentBuilder.java diff --git a/src/main/java/com/ilummc/tlib/bungee/api/chat/HoverEvent.java b/src/main/scala/com/ilummc/tlib/bungee/api/chat/HoverEvent.java similarity index 100% rename from src/main/java/com/ilummc/tlib/bungee/api/chat/HoverEvent.java rename to src/main/scala/com/ilummc/tlib/bungee/api/chat/HoverEvent.java diff --git a/src/main/java/com/ilummc/tlib/bungee/api/chat/TextComponent.java b/src/main/scala/com/ilummc/tlib/bungee/api/chat/TextComponent.java similarity index 100% rename from src/main/java/com/ilummc/tlib/bungee/api/chat/TextComponent.java rename to src/main/scala/com/ilummc/tlib/bungee/api/chat/TextComponent.java diff --git a/src/main/java/com/ilummc/tlib/bungee/api/chat/TranslatableComponent.java b/src/main/scala/com/ilummc/tlib/bungee/api/chat/TranslatableComponent.java similarity index 100% rename from src/main/java/com/ilummc/tlib/bungee/api/chat/TranslatableComponent.java rename to src/main/scala/com/ilummc/tlib/bungee/api/chat/TranslatableComponent.java diff --git a/src/main/java/com/ilummc/tlib/bungee/chat/BaseComponentSerializer.java b/src/main/scala/com/ilummc/tlib/bungee/chat/BaseComponentSerializer.java similarity index 100% rename from src/main/java/com/ilummc/tlib/bungee/chat/BaseComponentSerializer.java rename to src/main/scala/com/ilummc/tlib/bungee/chat/BaseComponentSerializer.java diff --git a/src/main/java/com/ilummc/tlib/bungee/chat/ComponentSerializer.java b/src/main/scala/com/ilummc/tlib/bungee/chat/ComponentSerializer.java similarity index 100% rename from src/main/java/com/ilummc/tlib/bungee/chat/ComponentSerializer.java rename to src/main/scala/com/ilummc/tlib/bungee/chat/ComponentSerializer.java diff --git a/src/main/java/com/ilummc/tlib/bungee/chat/TextComponentSerializer.java b/src/main/scala/com/ilummc/tlib/bungee/chat/TextComponentSerializer.java similarity index 100% rename from src/main/java/com/ilummc/tlib/bungee/chat/TextComponentSerializer.java rename to src/main/scala/com/ilummc/tlib/bungee/chat/TextComponentSerializer.java diff --git a/src/main/java/com/ilummc/tlib/bungee/chat/TranslatableComponentSerializer.java b/src/main/scala/com/ilummc/tlib/bungee/chat/TranslatableComponentSerializer.java similarity index 100% rename from src/main/java/com/ilummc/tlib/bungee/chat/TranslatableComponentSerializer.java rename to src/main/scala/com/ilummc/tlib/bungee/chat/TranslatableComponentSerializer.java diff --git a/src/main/java/com/ilummc/tlib/clr/CommandLineResolver.java b/src/main/scala/com/ilummc/tlib/clr/CommandLineResolver.java similarity index 100% rename from src/main/java/com/ilummc/tlib/clr/CommandLineResolver.java rename to src/main/scala/com/ilummc/tlib/clr/CommandLineResolver.java diff --git a/src/main/java/com/ilummc/tlib/compat/PlaceholderHook.java b/src/main/scala/com/ilummc/tlib/compat/PlaceholderHook.java similarity index 100% rename from src/main/java/com/ilummc/tlib/compat/PlaceholderHook.java rename to src/main/scala/com/ilummc/tlib/compat/PlaceholderHook.java diff --git a/src/main/java/com/ilummc/tlib/config/TLibConfig.java b/src/main/scala/com/ilummc/tlib/config/TLibConfig.java similarity index 100% rename from src/main/java/com/ilummc/tlib/config/TLibConfig.java rename to src/main/scala/com/ilummc/tlib/config/TLibConfig.java diff --git a/src/main/java/com/ilummc/tlib/db/Pool.java b/src/main/scala/com/ilummc/tlib/db/Pool.java similarity index 100% rename from src/main/java/com/ilummc/tlib/db/Pool.java rename to src/main/scala/com/ilummc/tlib/db/Pool.java diff --git a/src/main/java/com/ilummc/tlib/db/TLibDataSource.java b/src/main/scala/com/ilummc/tlib/db/TLibDataSource.java similarity index 100% rename from src/main/java/com/ilummc/tlib/db/TLibDataSource.java rename to src/main/scala/com/ilummc/tlib/db/TLibDataSource.java diff --git a/src/main/java/com/ilummc/tlib/dependency/TDependency.java b/src/main/scala/com/ilummc/tlib/dependency/TDependency.java similarity index 100% rename from src/main/java/com/ilummc/tlib/dependency/TDependency.java rename to src/main/scala/com/ilummc/tlib/dependency/TDependency.java diff --git a/src/main/java/com/ilummc/tlib/dependency/TDependencyLoader.java b/src/main/scala/com/ilummc/tlib/dependency/TDependencyLoader.java similarity index 100% rename from src/main/java/com/ilummc/tlib/dependency/TDependencyLoader.java rename to src/main/scala/com/ilummc/tlib/dependency/TDependencyLoader.java diff --git a/src/main/java/com/ilummc/tlib/filter/TLoggerFilter.java b/src/main/scala/com/ilummc/tlib/filter/TLoggerFilter.java similarity index 100% rename from src/main/java/com/ilummc/tlib/filter/TLoggerFilter.java rename to src/main/scala/com/ilummc/tlib/filter/TLoggerFilter.java diff --git a/src/main/java/com/ilummc/tlib/filter/TLoggerFilterHandler.java b/src/main/scala/com/ilummc/tlib/filter/TLoggerFilterHandler.java similarity index 100% rename from src/main/java/com/ilummc/tlib/filter/TLoggerFilterHandler.java rename to src/main/scala/com/ilummc/tlib/filter/TLoggerFilterHandler.java diff --git a/src/main/java/com/ilummc/tlib/filter/impl/FilterConfiguration.java b/src/main/scala/com/ilummc/tlib/filter/impl/FilterConfiguration.java similarity index 100% rename from src/main/java/com/ilummc/tlib/filter/impl/FilterConfiguration.java rename to src/main/scala/com/ilummc/tlib/filter/impl/FilterConfiguration.java diff --git a/src/main/java/com/ilummc/tlib/filter/impl/FilterExceptionMirror.java b/src/main/scala/com/ilummc/tlib/filter/impl/FilterExceptionMirror.java similarity index 100% rename from src/main/java/com/ilummc/tlib/filter/impl/FilterExceptionMirror.java rename to src/main/scala/com/ilummc/tlib/filter/impl/FilterExceptionMirror.java diff --git a/src/main/java/com/ilummc/tlib/filter/impl/FilterInvalidPluginLoader.java b/src/main/scala/com/ilummc/tlib/filter/impl/FilterInvalidPluginLoader.java similarity index 100% rename from src/main/java/com/ilummc/tlib/filter/impl/FilterInvalidPluginLoader.java rename to src/main/scala/com/ilummc/tlib/filter/impl/FilterInvalidPluginLoader.java diff --git a/src/main/java/com/ilummc/tlib/inject/TConfigInjector.java b/src/main/scala/com/ilummc/tlib/inject/TConfigInjector.java similarity index 100% rename from src/main/java/com/ilummc/tlib/inject/TConfigInjector.java rename to src/main/scala/com/ilummc/tlib/inject/TConfigInjector.java diff --git a/src/main/java/com/ilummc/tlib/inject/TConfigWatcher.java b/src/main/scala/com/ilummc/tlib/inject/TConfigWatcher.java similarity index 100% rename from src/main/java/com/ilummc/tlib/inject/TConfigWatcher.java rename to src/main/scala/com/ilummc/tlib/inject/TConfigWatcher.java diff --git a/src/main/java/com/ilummc/tlib/inject/TDependencyInjector.java b/src/main/scala/com/ilummc/tlib/inject/TDependencyInjector.java similarity index 100% rename from src/main/java/com/ilummc/tlib/inject/TDependencyInjector.java rename to src/main/scala/com/ilummc/tlib/inject/TDependencyInjector.java diff --git a/src/main/java/com/ilummc/tlib/inject/TLoggerManager.java b/src/main/scala/com/ilummc/tlib/inject/TLoggerManager.java similarity index 100% rename from src/main/java/com/ilummc/tlib/inject/TLoggerManager.java rename to src/main/scala/com/ilummc/tlib/inject/TLoggerManager.java diff --git a/src/main/java/com/ilummc/tlib/inject/TPluginManager.java b/src/main/scala/com/ilummc/tlib/inject/TPluginManager.java similarity index 100% rename from src/main/java/com/ilummc/tlib/inject/TPluginManager.java rename to src/main/scala/com/ilummc/tlib/inject/TPluginManager.java diff --git a/src/main/java/com/ilummc/tlib/logger/TLogger.java b/src/main/scala/com/ilummc/tlib/logger/TLogger.java similarity index 100% rename from src/main/java/com/ilummc/tlib/logger/TLogger.java rename to src/main/scala/com/ilummc/tlib/logger/TLogger.java diff --git a/src/main/java/com/ilummc/tlib/nms/ActionBar.java b/src/main/scala/com/ilummc/tlib/nms/ActionBar.java similarity index 100% rename from src/main/java/com/ilummc/tlib/nms/ActionBar.java rename to src/main/scala/com/ilummc/tlib/nms/ActionBar.java diff --git a/src/main/java/com/ilummc/tlib/resources/TLocale.java b/src/main/scala/com/ilummc/tlib/resources/TLocale.java similarity index 100% rename from src/main/java/com/ilummc/tlib/resources/TLocale.java rename to src/main/scala/com/ilummc/tlib/resources/TLocale.java diff --git a/src/main/java/com/ilummc/tlib/resources/TLocaleInstance.java b/src/main/scala/com/ilummc/tlib/resources/TLocaleInstance.java similarity index 100% rename from src/main/java/com/ilummc/tlib/resources/TLocaleInstance.java rename to src/main/scala/com/ilummc/tlib/resources/TLocaleInstance.java diff --git a/src/main/java/com/ilummc/tlib/resources/TLocaleLoader.java b/src/main/scala/com/ilummc/tlib/resources/TLocaleLoader.java similarity index 100% rename from src/main/java/com/ilummc/tlib/resources/TLocaleLoader.java rename to src/main/scala/com/ilummc/tlib/resources/TLocaleLoader.java diff --git a/src/main/java/com/ilummc/tlib/resources/TLocaleSender.java b/src/main/scala/com/ilummc/tlib/resources/TLocaleSender.java similarity index 100% rename from src/main/java/com/ilummc/tlib/resources/TLocaleSender.java rename to src/main/scala/com/ilummc/tlib/resources/TLocaleSender.java diff --git a/src/main/java/com/ilummc/tlib/resources/TLocaleSerialize.java b/src/main/scala/com/ilummc/tlib/resources/TLocaleSerialize.java similarity index 100% rename from src/main/java/com/ilummc/tlib/resources/TLocaleSerialize.java rename to src/main/scala/com/ilummc/tlib/resources/TLocaleSerialize.java diff --git a/src/main/java/com/ilummc/tlib/resources/type/TLocaleActionBar.java b/src/main/scala/com/ilummc/tlib/resources/type/TLocaleActionBar.java similarity index 100% rename from src/main/java/com/ilummc/tlib/resources/type/TLocaleActionBar.java rename to src/main/scala/com/ilummc/tlib/resources/type/TLocaleActionBar.java diff --git a/src/main/java/com/ilummc/tlib/resources/type/TLocaleBook.java b/src/main/scala/com/ilummc/tlib/resources/type/TLocaleBook.java similarity index 100% rename from src/main/java/com/ilummc/tlib/resources/type/TLocaleBook.java rename to src/main/scala/com/ilummc/tlib/resources/type/TLocaleBook.java diff --git a/src/main/java/com/ilummc/tlib/resources/type/TLocaleBossBar.java b/src/main/scala/com/ilummc/tlib/resources/type/TLocaleBossBar.java similarity index 100% rename from src/main/java/com/ilummc/tlib/resources/type/TLocaleBossBar.java rename to src/main/scala/com/ilummc/tlib/resources/type/TLocaleBossBar.java diff --git a/src/main/java/com/ilummc/tlib/resources/type/TLocaleJson.java b/src/main/scala/com/ilummc/tlib/resources/type/TLocaleJson.java similarity index 100% rename from src/main/java/com/ilummc/tlib/resources/type/TLocaleJson.java rename to src/main/scala/com/ilummc/tlib/resources/type/TLocaleJson.java diff --git a/src/main/java/com/ilummc/tlib/resources/type/TLocaleSound.java b/src/main/scala/com/ilummc/tlib/resources/type/TLocaleSound.java similarity index 100% rename from src/main/java/com/ilummc/tlib/resources/type/TLocaleSound.java rename to src/main/scala/com/ilummc/tlib/resources/type/TLocaleSound.java diff --git a/src/main/java/com/ilummc/tlib/resources/type/TLocaleText.java b/src/main/scala/com/ilummc/tlib/resources/type/TLocaleText.java similarity index 100% rename from src/main/java/com/ilummc/tlib/resources/type/TLocaleText.java rename to src/main/scala/com/ilummc/tlib/resources/type/TLocaleText.java diff --git a/src/main/java/com/ilummc/tlib/resources/type/TLocaleTitle.java b/src/main/scala/com/ilummc/tlib/resources/type/TLocaleTitle.java similarity index 100% rename from src/main/java/com/ilummc/tlib/resources/type/TLocaleTitle.java rename to src/main/scala/com/ilummc/tlib/resources/type/TLocaleTitle.java diff --git a/src/main/java/com/ilummc/tlib/util/IO.java b/src/main/scala/com/ilummc/tlib/util/IO.java similarity index 100% rename from src/main/java/com/ilummc/tlib/util/IO.java rename to src/main/scala/com/ilummc/tlib/util/IO.java diff --git a/src/main/java/com/ilummc/tlib/util/Ref.java b/src/main/scala/com/ilummc/tlib/util/Ref.java similarity index 100% rename from src/main/java/com/ilummc/tlib/util/Ref.java rename to src/main/scala/com/ilummc/tlib/util/Ref.java diff --git a/src/main/java/com/ilummc/tlib/util/Strings.java b/src/main/scala/com/ilummc/tlib/util/Strings.java similarity index 100% rename from src/main/java/com/ilummc/tlib/util/Strings.java rename to src/main/scala/com/ilummc/tlib/util/Strings.java diff --git a/src/main/java/com/ilummc/tlib/util/asm/AsmAnalyser.java b/src/main/scala/com/ilummc/tlib/util/asm/AsmAnalyser.java similarity index 100% rename from src/main/java/com/ilummc/tlib/util/asm/AsmAnalyser.java rename to src/main/scala/com/ilummc/tlib/util/asm/AsmAnalyser.java diff --git a/src/main/java/com/ilummc/tlib/util/asm/AsmClassLoader.java b/src/main/scala/com/ilummc/tlib/util/asm/AsmClassLoader.java similarity index 100% rename from src/main/java/com/ilummc/tlib/util/asm/AsmClassLoader.java rename to src/main/scala/com/ilummc/tlib/util/asm/AsmClassLoader.java diff --git a/src/main/java/com/ilummc/tlib/util/asm/AsmClassTransformer.java b/src/main/scala/com/ilummc/tlib/util/asm/AsmClassTransformer.java similarity index 100% rename from src/main/java/com/ilummc/tlib/util/asm/AsmClassTransformer.java rename to src/main/scala/com/ilummc/tlib/util/asm/AsmClassTransformer.java diff --git a/src/main/scala/com/ilummc/tlib/scala/AsyncTask.scala b/src/main/scala/com/ilummc/tlibscala/AsyncTask.scala similarity index 94% rename from src/main/scala/com/ilummc/tlib/scala/AsyncTask.scala rename to src/main/scala/com/ilummc/tlibscala/AsyncTask.scala index c5706ed..274372d 100644 --- a/src/main/scala/com/ilummc/tlib/scala/AsyncTask.scala +++ b/src/main/scala/com/ilummc/tlibscala/AsyncTask.scala @@ -1,4 +1,4 @@ -package com.ilummc.tlib.scala +package com.ilummc.tlibscala import org.bukkit.plugin.Plugin diff --git a/src/main/scala/com/ilummc/tlib/scala/Example.scala b/src/main/scala/com/ilummc/tlibscala/Example.scala similarity index 94% rename from src/main/scala/com/ilummc/tlib/scala/Example.scala rename to src/main/scala/com/ilummc/tlibscala/Example.scala index d779b47..2453916 100644 --- a/src/main/scala/com/ilummc/tlib/scala/Example.scala +++ b/src/main/scala/com/ilummc/tlibscala/Example.scala @@ -1,6 +1,6 @@ -package com.ilummc.tlib.scala +package com.ilummc.tlibscala -import com.ilummc.tlib.scala.Prelude._ +import Prelude._ import org.bukkit.Material import org.bukkit.event.player.PlayerJoinEvent import org.bukkit.event.{EventHandler, Listener} diff --git a/src/main/scala/com/ilummc/tlib/scala/Implicits.scala b/src/main/scala/com/ilummc/tlibscala/Implicits.scala similarity index 87% rename from src/main/scala/com/ilummc/tlib/scala/Implicits.scala rename to src/main/scala/com/ilummc/tlibscala/Implicits.scala index b1a0e8e..9ed88a5 100644 --- a/src/main/scala/com/ilummc/tlib/scala/Implicits.scala +++ b/src/main/scala/com/ilummc/tlibscala/Implicits.scala @@ -1,6 +1,6 @@ -package com.ilummc.tlib.scala +package com.ilummc.tlibscala -import com.ilummc.tlib.scala.runtime.{RichLocation, RichOfflinePlayer, RichPlayer, RichVector} +import com.ilummc.tlibscala.runtime.{RichLocation, RichOfflinePlayer, RichPlayer, RichVector} import org.bukkit.entity.Player import org.bukkit.util.Vector import org.bukkit.{Location, OfflinePlayer, World, util} diff --git a/src/main/scala/com/ilummc/tlib/scala/Prelude.scala b/src/main/scala/com/ilummc/tlibscala/Prelude.scala similarity index 98% rename from src/main/scala/com/ilummc/tlib/scala/Prelude.scala rename to src/main/scala/com/ilummc/tlibscala/Prelude.scala index c8e079a..443365a 100644 --- a/src/main/scala/com/ilummc/tlib/scala/Prelude.scala +++ b/src/main/scala/com/ilummc/tlibscala/Prelude.scala @@ -1,4 +1,4 @@ -package com.ilummc.tlib.scala +package com.ilummc.tlibscala import com.ilummc.tlib.resources.TLocale.Logger import org.bukkit.Bukkit diff --git a/src/main/scala/com/ilummc/tlib/scala/ScalaTaskExecutor.scala b/src/main/scala/com/ilummc/tlibscala/ScalaTaskExecutor.scala similarity index 80% rename from src/main/scala/com/ilummc/tlib/scala/ScalaTaskExecutor.scala rename to src/main/scala/com/ilummc/tlibscala/ScalaTaskExecutor.scala index 06a88f3..da1b997 100644 --- a/src/main/scala/com/ilummc/tlib/scala/ScalaTaskExecutor.scala +++ b/src/main/scala/com/ilummc/tlibscala/ScalaTaskExecutor.scala @@ -1,8 +1,8 @@ -package com.ilummc.tlib.scala +package com.ilummc.tlibscala import org.bukkit.scheduler.BukkitRunnable -private[scala] class ScalaTaskExecutor(task: => Any) extends BukkitRunnable { +private[tlibscala] class ScalaTaskExecutor(task: => Any) extends BukkitRunnable { override def run(): Unit = { try task catch { diff --git a/src/main/scala/com/ilummc/tlib/scala/Task.scala b/src/main/scala/com/ilummc/tlibscala/Task.scala similarity index 94% rename from src/main/scala/com/ilummc/tlib/scala/Task.scala rename to src/main/scala/com/ilummc/tlibscala/Task.scala index 0c889fe..267ff07 100644 --- a/src/main/scala/com/ilummc/tlib/scala/Task.scala +++ b/src/main/scala/com/ilummc/tlibscala/Task.scala @@ -1,4 +1,4 @@ -package com.ilummc.tlib.scala +package com.ilummc.tlibscala import org.bukkit.plugin.Plugin diff --git a/src/main/scala/com/ilummc/tlib/scala/runtime/RichLocation.scala b/src/main/scala/com/ilummc/tlibscala/runtime/RichLocation.scala similarity index 93% rename from src/main/scala/com/ilummc/tlib/scala/runtime/RichLocation.scala rename to src/main/scala/com/ilummc/tlibscala/runtime/RichLocation.scala index 18a0ff3..ef8bcf2 100644 --- a/src/main/scala/com/ilummc/tlib/scala/runtime/RichLocation.scala +++ b/src/main/scala/com/ilummc/tlibscala/runtime/RichLocation.scala @@ -1,4 +1,4 @@ -package com.ilummc.tlib.scala.runtime +package com.ilummc.tlibscala.runtime import org.bukkit.Location diff --git a/src/main/scala/com/ilummc/tlib/scala/runtime/RichOfflinePlayer.scala b/src/main/scala/com/ilummc/tlibscala/runtime/RichOfflinePlayer.scala similarity index 95% rename from src/main/scala/com/ilummc/tlib/scala/runtime/RichOfflinePlayer.scala rename to src/main/scala/com/ilummc/tlibscala/runtime/RichOfflinePlayer.scala index 8c1b160..fa3d7f1 100644 --- a/src/main/scala/com/ilummc/tlib/scala/runtime/RichOfflinePlayer.scala +++ b/src/main/scala/com/ilummc/tlibscala/runtime/RichOfflinePlayer.scala @@ -1,4 +1,4 @@ -package com.ilummc.tlib.scala.runtime +package com.ilummc.tlibscala.runtime import me.skymc.taboolib.Main import me.skymc.taboolib.economy.EcoUtils diff --git a/src/main/scala/com/ilummc/tlib/scala/runtime/RichPlayer.scala b/src/main/scala/com/ilummc/tlibscala/runtime/RichPlayer.scala similarity index 98% rename from src/main/scala/com/ilummc/tlib/scala/runtime/RichPlayer.scala rename to src/main/scala/com/ilummc/tlibscala/runtime/RichPlayer.scala index 167059a..213c576 100644 --- a/src/main/scala/com/ilummc/tlib/scala/runtime/RichPlayer.scala +++ b/src/main/scala/com/ilummc/tlibscala/runtime/RichPlayer.scala @@ -1,4 +1,4 @@ -package com.ilummc.tlib.scala.runtime +package com.ilummc.tlibscala.runtime import com.ilummc.tlib.resources.TLocale import me.skymc.taboolib.anvil.AnvilContainerAPI diff --git a/src/main/scala/com/ilummc/tlib/scala/runtime/RichVector.scala b/src/main/scala/com/ilummc/tlibscala/runtime/RichVector.scala similarity index 93% rename from src/main/scala/com/ilummc/tlib/scala/runtime/RichVector.scala rename to src/main/scala/com/ilummc/tlibscala/runtime/RichVector.scala index f12bbd6..557dd3d 100644 --- a/src/main/scala/com/ilummc/tlib/scala/runtime/RichVector.scala +++ b/src/main/scala/com/ilummc/tlibscala/runtime/RichVector.scala @@ -1,4 +1,4 @@ -package com.ilummc.tlib.scala.runtime +package com.ilummc.tlibscala.runtime import org.bukkit.util.Vector diff --git a/src/main/java/me/skymc/taboolib/Main.java b/src/main/scala/me/skymc/taboolib/Main.java similarity index 100% rename from src/main/java/me/skymc/taboolib/Main.java rename to src/main/scala/me/skymc/taboolib/Main.java diff --git a/src/main/java/me/skymc/taboolib/TabooLib.java b/src/main/scala/me/skymc/taboolib/TabooLib.java similarity index 100% rename from src/main/java/me/skymc/taboolib/TabooLib.java rename to src/main/scala/me/skymc/taboolib/TabooLib.java diff --git a/src/main/java/me/skymc/taboolib/TabooLibDatabase.java b/src/main/scala/me/skymc/taboolib/TabooLibDatabase.java similarity index 100% rename from src/main/java/me/skymc/taboolib/TabooLibDatabase.java rename to src/main/scala/me/skymc/taboolib/TabooLibDatabase.java diff --git a/src/main/java/me/skymc/taboolib/TabooLibLoader.java b/src/main/scala/me/skymc/taboolib/TabooLibLoader.java similarity index 97% rename from src/main/java/me/skymc/taboolib/TabooLibLoader.java rename to src/main/scala/me/skymc/taboolib/TabooLibLoader.java index 8ad09da..115cb10 100644 --- a/src/main/java/me/skymc/taboolib/TabooLibLoader.java +++ b/src/main/scala/me/skymc/taboolib/TabooLibLoader.java @@ -159,7 +159,10 @@ public class TabooLibLoader implements Listener { } static void setupAddons() { - TabooLib.instance().saveResource("Addons/TabooLibDeprecated.jar", true); + TabooLib.instance().saveResource("Addons/TabooLibDeprecated", true); + // 傻逼 Gradle 的 shadow 插件会将所有 jar 排除 + // https://github.com/johnrengelman/shadow/issues/276 + new File(TabooLib.instance().getDataFolder(), "Addons/TabooLibDeprecated").renameTo(new File(TabooLib.instance().getDataFolder(), "Addons/TabooLibDeprecated.jar")); File file = new File(TabooLib.instance().getDataFolder(), "Addons"); if (file.exists()) { Arrays.stream(file.listFiles()).forEach(listFile -> TDependencyLoader.addToPath(TabooLib.instance(), listFile)); diff --git a/src/main/java/me/skymc/taboolib/anvil/AnvilContainer.java b/src/main/scala/me/skymc/taboolib/anvil/AnvilContainer.java similarity index 100% rename from src/main/java/me/skymc/taboolib/anvil/AnvilContainer.java rename to src/main/scala/me/skymc/taboolib/anvil/AnvilContainer.java diff --git a/src/main/java/me/skymc/taboolib/anvil/AnvilContainerAPI.java b/src/main/scala/me/skymc/taboolib/anvil/AnvilContainerAPI.java similarity index 100% rename from src/main/java/me/skymc/taboolib/anvil/AnvilContainerAPI.java rename to src/main/scala/me/skymc/taboolib/anvil/AnvilContainerAPI.java diff --git a/src/main/java/me/skymc/taboolib/anvil/AnvilContainerGenerator.java b/src/main/scala/me/skymc/taboolib/anvil/AnvilContainerGenerator.java similarity index 100% rename from src/main/java/me/skymc/taboolib/anvil/AnvilContainerGenerator.java rename to src/main/scala/me/skymc/taboolib/anvil/AnvilContainerGenerator.java diff --git a/src/main/java/me/skymc/taboolib/bookformatter/BookAchievement.java b/src/main/scala/me/skymc/taboolib/bookformatter/BookAchievement.java similarity index 100% rename from src/main/java/me/skymc/taboolib/bookformatter/BookAchievement.java rename to src/main/scala/me/skymc/taboolib/bookformatter/BookAchievement.java diff --git a/src/main/java/me/skymc/taboolib/bookformatter/BookFormatter.java b/src/main/scala/me/skymc/taboolib/bookformatter/BookFormatter.java similarity index 100% rename from src/main/java/me/skymc/taboolib/bookformatter/BookFormatter.java rename to src/main/scala/me/skymc/taboolib/bookformatter/BookFormatter.java diff --git a/src/main/java/me/skymc/taboolib/bookformatter/BookReflection.java b/src/main/scala/me/skymc/taboolib/bookformatter/BookReflection.java similarity index 100% rename from src/main/java/me/skymc/taboolib/bookformatter/BookReflection.java rename to src/main/scala/me/skymc/taboolib/bookformatter/BookReflection.java diff --git a/src/main/java/me/skymc/taboolib/bookformatter/action/ClickAction.java b/src/main/scala/me/skymc/taboolib/bookformatter/action/ClickAction.java similarity index 100% rename from src/main/java/me/skymc/taboolib/bookformatter/action/ClickAction.java rename to src/main/scala/me/skymc/taboolib/bookformatter/action/ClickAction.java diff --git a/src/main/java/me/skymc/taboolib/bookformatter/action/HoverAction.java b/src/main/scala/me/skymc/taboolib/bookformatter/action/HoverAction.java similarity index 100% rename from src/main/java/me/skymc/taboolib/bookformatter/action/HoverAction.java rename to src/main/scala/me/skymc/taboolib/bookformatter/action/HoverAction.java diff --git a/src/main/java/me/skymc/taboolib/bookformatter/builder/BookBuilder.java b/src/main/scala/me/skymc/taboolib/bookformatter/builder/BookBuilder.java similarity index 100% rename from src/main/java/me/skymc/taboolib/bookformatter/builder/BookBuilder.java rename to src/main/scala/me/skymc/taboolib/bookformatter/builder/BookBuilder.java diff --git a/src/main/java/me/skymc/taboolib/bookformatter/builder/PageBuilder.java b/src/main/scala/me/skymc/taboolib/bookformatter/builder/PageBuilder.java similarity index 100% rename from src/main/java/me/skymc/taboolib/bookformatter/builder/PageBuilder.java rename to src/main/scala/me/skymc/taboolib/bookformatter/builder/PageBuilder.java diff --git a/src/main/java/me/skymc/taboolib/bookformatter/builder/TextBuilder.java b/src/main/scala/me/skymc/taboolib/bookformatter/builder/TextBuilder.java similarity index 100% rename from src/main/java/me/skymc/taboolib/bookformatter/builder/TextBuilder.java rename to src/main/scala/me/skymc/taboolib/bookformatter/builder/TextBuilder.java diff --git a/src/main/java/me/skymc/taboolib/bstats/Metrics.java b/src/main/scala/me/skymc/taboolib/bstats/Metrics.java similarity index 100% rename from src/main/java/me/skymc/taboolib/bstats/Metrics.java rename to src/main/scala/me/skymc/taboolib/bstats/Metrics.java diff --git a/src/main/java/me/skymc/taboolib/bungee/TabooLibBungee.java b/src/main/scala/me/skymc/taboolib/bungee/TabooLibBungee.java similarity index 100% rename from src/main/java/me/skymc/taboolib/bungee/TabooLibBungee.java rename to src/main/scala/me/skymc/taboolib/bungee/TabooLibBungee.java diff --git a/src/main/java/me/skymc/taboolib/client/LogClient.java b/src/main/scala/me/skymc/taboolib/client/LogClient.java similarity index 100% rename from src/main/java/me/skymc/taboolib/client/LogClient.java rename to src/main/scala/me/skymc/taboolib/client/LogClient.java diff --git a/src/main/java/me/skymc/taboolib/cloud/TCloudCommand.java b/src/main/scala/me/skymc/taboolib/cloud/TCloudCommand.java similarity index 100% rename from src/main/java/me/skymc/taboolib/cloud/TCloudCommand.java rename to src/main/scala/me/skymc/taboolib/cloud/TCloudCommand.java diff --git a/src/main/java/me/skymc/taboolib/cloud/TCloudLoader.java b/src/main/scala/me/skymc/taboolib/cloud/TCloudLoader.java similarity index 100% rename from src/main/java/me/skymc/taboolib/cloud/TCloudLoader.java rename to src/main/scala/me/skymc/taboolib/cloud/TCloudLoader.java diff --git a/src/main/java/me/skymc/taboolib/cloud/expansion/Expansion.java b/src/main/scala/me/skymc/taboolib/cloud/expansion/Expansion.java similarity index 100% rename from src/main/java/me/skymc/taboolib/cloud/expansion/Expansion.java rename to src/main/scala/me/skymc/taboolib/cloud/expansion/Expansion.java diff --git a/src/main/java/me/skymc/taboolib/cloud/expansion/ExpansionType.java b/src/main/scala/me/skymc/taboolib/cloud/expansion/ExpansionType.java similarity index 100% rename from src/main/java/me/skymc/taboolib/cloud/expansion/ExpansionType.java rename to src/main/scala/me/skymc/taboolib/cloud/expansion/ExpansionType.java diff --git a/src/main/java/me/skymc/taboolib/commands/SubCommand.java b/src/main/scala/me/skymc/taboolib/commands/SubCommand.java similarity index 100% rename from src/main/java/me/skymc/taboolib/commands/SubCommand.java rename to src/main/scala/me/skymc/taboolib/commands/SubCommand.java diff --git a/src/main/java/me/skymc/taboolib/commands/SubCommandExecutor.java b/src/main/scala/me/skymc/taboolib/commands/SubCommandExecutor.java similarity index 100% rename from src/main/java/me/skymc/taboolib/commands/SubCommandExecutor.java rename to src/main/scala/me/skymc/taboolib/commands/SubCommandExecutor.java diff --git a/src/main/java/me/skymc/taboolib/commands/TabooLibExecuteCommand.java b/src/main/scala/me/skymc/taboolib/commands/TabooLibExecuteCommand.java similarity index 100% rename from src/main/java/me/skymc/taboolib/commands/TabooLibExecuteCommand.java rename to src/main/scala/me/skymc/taboolib/commands/TabooLibExecuteCommand.java diff --git a/src/main/java/me/skymc/taboolib/commands/TabooLibMainCommand.java b/src/main/scala/me/skymc/taboolib/commands/TabooLibMainCommand.java similarity index 100% rename from src/main/java/me/skymc/taboolib/commands/TabooLibMainCommand.java rename to src/main/scala/me/skymc/taboolib/commands/TabooLibMainCommand.java diff --git a/src/main/java/me/skymc/taboolib/commands/builder/SimpleCommandBuilder.java b/src/main/scala/me/skymc/taboolib/commands/builder/SimpleCommandBuilder.java similarity index 100% rename from src/main/java/me/skymc/taboolib/commands/builder/SimpleCommandBuilder.java rename to src/main/scala/me/skymc/taboolib/commands/builder/SimpleCommandBuilder.java diff --git a/src/main/java/me/skymc/taboolib/commands/builder/type/CompleterCommand.java b/src/main/scala/me/skymc/taboolib/commands/builder/type/CompleterCommand.java similarity index 100% rename from src/main/java/me/skymc/taboolib/commands/builder/type/CompleterCommand.java rename to src/main/scala/me/skymc/taboolib/commands/builder/type/CompleterCommand.java diff --git a/src/main/java/me/skymc/taboolib/commands/builder/type/CompleterTab.java b/src/main/scala/me/skymc/taboolib/commands/builder/type/CompleterTab.java similarity index 100% rename from src/main/java/me/skymc/taboolib/commands/builder/type/CompleterTab.java rename to src/main/scala/me/skymc/taboolib/commands/builder/type/CompleterTab.java diff --git a/src/main/java/me/skymc/taboolib/commands/internal/BaseMainCommand.java b/src/main/scala/me/skymc/taboolib/commands/internal/BaseMainCommand.java similarity index 100% rename from src/main/java/me/skymc/taboolib/commands/internal/BaseMainCommand.java rename to src/main/scala/me/skymc/taboolib/commands/internal/BaseMainCommand.java diff --git a/src/main/java/me/skymc/taboolib/commands/internal/BaseSubCommand.java b/src/main/scala/me/skymc/taboolib/commands/internal/BaseSubCommand.java similarity index 100% rename from src/main/java/me/skymc/taboolib/commands/internal/BaseSubCommand.java rename to src/main/scala/me/skymc/taboolib/commands/internal/BaseSubCommand.java diff --git a/src/main/java/me/skymc/taboolib/commands/internal/TBaseCommand.java b/src/main/scala/me/skymc/taboolib/commands/internal/TBaseCommand.java similarity index 100% rename from src/main/java/me/skymc/taboolib/commands/internal/TBaseCommand.java rename to src/main/scala/me/skymc/taboolib/commands/internal/TBaseCommand.java diff --git a/src/main/java/me/skymc/taboolib/commands/internal/TCommand.java b/src/main/scala/me/skymc/taboolib/commands/internal/TCommand.java similarity index 100% rename from src/main/java/me/skymc/taboolib/commands/internal/TCommand.java rename to src/main/scala/me/skymc/taboolib/commands/internal/TCommand.java diff --git a/src/main/java/me/skymc/taboolib/commands/internal/TCommandHandler.java b/src/main/scala/me/skymc/taboolib/commands/internal/TCommandHandler.java similarity index 100% rename from src/main/java/me/skymc/taboolib/commands/internal/TCommandHandler.java rename to src/main/scala/me/skymc/taboolib/commands/internal/TCommandHandler.java diff --git a/src/main/java/me/skymc/taboolib/commands/internal/plugin/TLibLocale.java b/src/main/scala/me/skymc/taboolib/commands/internal/plugin/TLibLocale.java similarity index 100% rename from src/main/java/me/skymc/taboolib/commands/internal/plugin/TLibLocale.java rename to src/main/scala/me/skymc/taboolib/commands/internal/plugin/TLibLocale.java diff --git a/src/main/java/me/skymc/taboolib/commands/internal/type/CommandArgument.java b/src/main/scala/me/skymc/taboolib/commands/internal/type/CommandArgument.java similarity index 100% rename from src/main/java/me/skymc/taboolib/commands/internal/type/CommandArgument.java rename to src/main/scala/me/skymc/taboolib/commands/internal/type/CommandArgument.java diff --git a/src/main/java/me/skymc/taboolib/commands/internal/type/CommandField.java b/src/main/scala/me/skymc/taboolib/commands/internal/type/CommandField.java similarity index 100% rename from src/main/java/me/skymc/taboolib/commands/internal/type/CommandField.java rename to src/main/scala/me/skymc/taboolib/commands/internal/type/CommandField.java diff --git a/src/main/java/me/skymc/taboolib/commands/internal/type/CommandRegister.java b/src/main/scala/me/skymc/taboolib/commands/internal/type/CommandRegister.java similarity index 100% rename from src/main/java/me/skymc/taboolib/commands/internal/type/CommandRegister.java rename to src/main/scala/me/skymc/taboolib/commands/internal/type/CommandRegister.java diff --git a/src/main/java/me/skymc/taboolib/commands/internal/type/CommandType.java b/src/main/scala/me/skymc/taboolib/commands/internal/type/CommandType.java similarity index 100% rename from src/main/java/me/skymc/taboolib/commands/internal/type/CommandType.java rename to src/main/scala/me/skymc/taboolib/commands/internal/type/CommandType.java diff --git a/src/main/java/me/skymc/taboolib/commands/language/Language2Command.java b/src/main/scala/me/skymc/taboolib/commands/language/Language2Command.java similarity index 100% rename from src/main/java/me/skymc/taboolib/commands/language/Language2Command.java rename to src/main/scala/me/skymc/taboolib/commands/language/Language2Command.java diff --git a/src/main/java/me/skymc/taboolib/commands/locale/TabooLibLocaleCommand.java b/src/main/scala/me/skymc/taboolib/commands/locale/TabooLibLocaleCommand.java similarity index 100% rename from src/main/java/me/skymc/taboolib/commands/locale/TabooLibLocaleCommand.java rename to src/main/scala/me/skymc/taboolib/commands/locale/TabooLibLocaleCommand.java diff --git a/src/main/java/me/skymc/taboolib/commands/plugin/TabooLibPluginCommand.java b/src/main/scala/me/skymc/taboolib/commands/plugin/TabooLibPluginCommand.java similarity index 100% rename from src/main/java/me/skymc/taboolib/commands/plugin/TabooLibPluginCommand.java rename to src/main/scala/me/skymc/taboolib/commands/plugin/TabooLibPluginCommand.java diff --git a/src/main/java/me/skymc/taboolib/commands/taboolib/AttributesCommand.java b/src/main/scala/me/skymc/taboolib/commands/taboolib/AttributesCommand.java similarity index 100% rename from src/main/java/me/skymc/taboolib/commands/taboolib/AttributesCommand.java rename to src/main/scala/me/skymc/taboolib/commands/taboolib/AttributesCommand.java diff --git a/src/main/java/me/skymc/taboolib/commands/taboolib/EnchantCommand.java b/src/main/scala/me/skymc/taboolib/commands/taboolib/EnchantCommand.java similarity index 100% rename from src/main/java/me/skymc/taboolib/commands/taboolib/EnchantCommand.java rename to src/main/scala/me/skymc/taboolib/commands/taboolib/EnchantCommand.java diff --git a/src/main/java/me/skymc/taboolib/commands/taboolib/FlagCommand.java b/src/main/scala/me/skymc/taboolib/commands/taboolib/FlagCommand.java similarity index 100% rename from src/main/java/me/skymc/taboolib/commands/taboolib/FlagCommand.java rename to src/main/scala/me/skymc/taboolib/commands/taboolib/FlagCommand.java diff --git a/src/main/java/me/skymc/taboolib/commands/taboolib/ImportCommand.java b/src/main/scala/me/skymc/taboolib/commands/taboolib/ImportCommand.java similarity index 100% rename from src/main/java/me/skymc/taboolib/commands/taboolib/ImportCommand.java rename to src/main/scala/me/skymc/taboolib/commands/taboolib/ImportCommand.java diff --git a/src/main/java/me/skymc/taboolib/commands/taboolib/InfoCommand.java b/src/main/scala/me/skymc/taboolib/commands/taboolib/InfoCommand.java similarity index 100% rename from src/main/java/me/skymc/taboolib/commands/taboolib/InfoCommand.java rename to src/main/scala/me/skymc/taboolib/commands/taboolib/InfoCommand.java diff --git a/src/main/java/me/skymc/taboolib/commands/taboolib/ItemCommand.java b/src/main/scala/me/skymc/taboolib/commands/taboolib/ItemCommand.java similarity index 100% rename from src/main/java/me/skymc/taboolib/commands/taboolib/ItemCommand.java rename to src/main/scala/me/skymc/taboolib/commands/taboolib/ItemCommand.java diff --git a/src/main/java/me/skymc/taboolib/commands/taboolib/ItemListCommand.java b/src/main/scala/me/skymc/taboolib/commands/taboolib/ItemListCommand.java similarity index 100% rename from src/main/java/me/skymc/taboolib/commands/taboolib/ItemListCommand.java rename to src/main/scala/me/skymc/taboolib/commands/taboolib/ItemListCommand.java diff --git a/src/main/java/me/skymc/taboolib/commands/taboolib/PotionCommand.java b/src/main/scala/me/skymc/taboolib/commands/taboolib/PotionCommand.java similarity index 100% rename from src/main/java/me/skymc/taboolib/commands/taboolib/PotionCommand.java rename to src/main/scala/me/skymc/taboolib/commands/taboolib/PotionCommand.java diff --git a/src/main/java/me/skymc/taboolib/commands/taboolib/SaveCommand.java b/src/main/scala/me/skymc/taboolib/commands/taboolib/SaveCommand.java similarity index 100% rename from src/main/java/me/skymc/taboolib/commands/taboolib/SaveCommand.java rename to src/main/scala/me/skymc/taboolib/commands/taboolib/SaveCommand.java diff --git a/src/main/java/me/skymc/taboolib/commands/taboolib/SlotCommand.java b/src/main/scala/me/skymc/taboolib/commands/taboolib/SlotCommand.java similarity index 100% rename from src/main/java/me/skymc/taboolib/commands/taboolib/SlotCommand.java rename to src/main/scala/me/skymc/taboolib/commands/taboolib/SlotCommand.java diff --git a/src/main/java/me/skymc/taboolib/commands/taboolib/SoundsCommand.java b/src/main/scala/me/skymc/taboolib/commands/taboolib/SoundsCommand.java similarity index 100% rename from src/main/java/me/skymc/taboolib/commands/taboolib/SoundsCommand.java rename to src/main/scala/me/skymc/taboolib/commands/taboolib/SoundsCommand.java diff --git a/src/main/java/me/skymc/taboolib/commands/taboolib/TagDeleteCommand.java b/src/main/scala/me/skymc/taboolib/commands/taboolib/TagDeleteCommand.java similarity index 100% rename from src/main/java/me/skymc/taboolib/commands/taboolib/TagDeleteCommand.java rename to src/main/scala/me/skymc/taboolib/commands/taboolib/TagDeleteCommand.java diff --git a/src/main/java/me/skymc/taboolib/commands/taboolib/TagDisplayCommand.java b/src/main/scala/me/skymc/taboolib/commands/taboolib/TagDisplayCommand.java similarity index 100% rename from src/main/java/me/skymc/taboolib/commands/taboolib/TagDisplayCommand.java rename to src/main/scala/me/skymc/taboolib/commands/taboolib/TagDisplayCommand.java diff --git a/src/main/java/me/skymc/taboolib/commands/taboolib/TagPrefixCommand.java b/src/main/scala/me/skymc/taboolib/commands/taboolib/TagPrefixCommand.java similarity index 100% rename from src/main/java/me/skymc/taboolib/commands/taboolib/TagPrefixCommand.java rename to src/main/scala/me/skymc/taboolib/commands/taboolib/TagPrefixCommand.java diff --git a/src/main/java/me/skymc/taboolib/commands/taboolib/TagSuffixCommand.java b/src/main/scala/me/skymc/taboolib/commands/taboolib/TagSuffixCommand.java similarity index 100% rename from src/main/java/me/skymc/taboolib/commands/taboolib/TagSuffixCommand.java rename to src/main/scala/me/skymc/taboolib/commands/taboolib/TagSuffixCommand.java diff --git a/src/main/java/me/skymc/taboolib/commands/taboolib/VariableGetCommand.java b/src/main/scala/me/skymc/taboolib/commands/taboolib/VariableGetCommand.java similarity index 100% rename from src/main/java/me/skymc/taboolib/commands/taboolib/VariableGetCommand.java rename to src/main/scala/me/skymc/taboolib/commands/taboolib/VariableGetCommand.java diff --git a/src/main/java/me/skymc/taboolib/commands/taboolib/VariableSetCommand.java b/src/main/scala/me/skymc/taboolib/commands/taboolib/VariableSetCommand.java similarity index 100% rename from src/main/java/me/skymc/taboolib/commands/taboolib/VariableSetCommand.java rename to src/main/scala/me/skymc/taboolib/commands/taboolib/VariableSetCommand.java diff --git a/src/main/java/me/skymc/taboolib/commands/taboolib/listener/ListenerItemListCommand.java b/src/main/scala/me/skymc/taboolib/commands/taboolib/listener/ListenerItemListCommand.java similarity index 100% rename from src/main/java/me/skymc/taboolib/commands/taboolib/listener/ListenerItemListCommand.java rename to src/main/scala/me/skymc/taboolib/commands/taboolib/listener/ListenerItemListCommand.java diff --git a/src/main/java/me/skymc/taboolib/commands/taboolib/listener/ListenerSoundsCommand.java b/src/main/scala/me/skymc/taboolib/commands/taboolib/listener/ListenerSoundsCommand.java similarity index 100% rename from src/main/java/me/skymc/taboolib/commands/taboolib/listener/ListenerSoundsCommand.java rename to src/main/scala/me/skymc/taboolib/commands/taboolib/listener/ListenerSoundsCommand.java diff --git a/src/main/java/me/skymc/taboolib/common/configuration/TConfiguration.java b/src/main/scala/me/skymc/taboolib/common/configuration/TConfiguration.java similarity index 100% rename from src/main/java/me/skymc/taboolib/common/configuration/TConfiguration.java rename to src/main/scala/me/skymc/taboolib/common/configuration/TConfiguration.java diff --git a/src/main/java/me/skymc/taboolib/common/function/TFunction.java b/src/main/scala/me/skymc/taboolib/common/function/TFunction.java similarity index 100% rename from src/main/java/me/skymc/taboolib/common/function/TFunction.java rename to src/main/scala/me/skymc/taboolib/common/function/TFunction.java diff --git a/src/main/java/me/skymc/taboolib/common/function/TFunctionLoader.java b/src/main/scala/me/skymc/taboolib/common/function/TFunctionLoader.java similarity index 100% rename from src/main/java/me/skymc/taboolib/common/function/TFunctionLoader.java rename to src/main/scala/me/skymc/taboolib/common/function/TFunctionLoader.java diff --git a/src/main/java/me/skymc/taboolib/common/inject/TInject.java b/src/main/scala/me/skymc/taboolib/common/inject/TInject.java similarity index 100% rename from src/main/java/me/skymc/taboolib/common/inject/TInject.java rename to src/main/scala/me/skymc/taboolib/common/inject/TInject.java diff --git a/src/main/java/me/skymc/taboolib/common/inject/TInjectLoader.java b/src/main/scala/me/skymc/taboolib/common/inject/TInjectLoader.java similarity index 100% rename from src/main/java/me/skymc/taboolib/common/inject/TInjectLoader.java rename to src/main/scala/me/skymc/taboolib/common/inject/TInjectLoader.java diff --git a/src/main/java/me/skymc/taboolib/common/inject/TInjectTask.java b/src/main/scala/me/skymc/taboolib/common/inject/TInjectTask.java similarity index 100% rename from src/main/java/me/skymc/taboolib/common/inject/TInjectTask.java rename to src/main/scala/me/skymc/taboolib/common/inject/TInjectTask.java diff --git a/src/main/java/me/skymc/taboolib/common/json/TJsonArray.java b/src/main/scala/me/skymc/taboolib/common/json/TJsonArray.java similarity index 97% rename from src/main/java/me/skymc/taboolib/common/json/TJsonArray.java rename to src/main/scala/me/skymc/taboolib/common/json/TJsonArray.java index f094d7d..f23a63e 100644 --- a/src/main/java/me/skymc/taboolib/common/json/TJsonArray.java +++ b/src/main/scala/me/skymc/taboolib/common/json/TJsonArray.java @@ -59,7 +59,7 @@ public class TJsonArray implements Iterable { * @param obj 成员 */ public void add(Boolean obj) { - jsonArray.add(obj); + jsonArray.add(new JsonPrimitive(obj)); } /** @@ -68,7 +68,7 @@ public class TJsonArray implements Iterable { * @param obj 成员 */ public void add(Character obj) { - jsonArray.add(obj); + jsonArray.add(new JsonPrimitive(obj)); } /** @@ -77,7 +77,7 @@ public class TJsonArray implements Iterable { * @param obj 成员 */ public void add(Number obj) { - jsonArray.add(obj); + jsonArray.add(new JsonPrimitive(obj)); } /** @@ -86,7 +86,7 @@ public class TJsonArray implements Iterable { * @param obj 成员 */ public void add(String obj) { - jsonArray.add(obj); + jsonArray.add(new JsonPrimitive(obj)); } /** diff --git a/src/main/java/me/skymc/taboolib/common/json/TJsonObject.java b/src/main/scala/me/skymc/taboolib/common/json/TJsonObject.java similarity index 100% rename from src/main/java/me/skymc/taboolib/common/json/TJsonObject.java rename to src/main/scala/me/skymc/taboolib/common/json/TJsonObject.java diff --git a/src/main/java/me/skymc/taboolib/common/loader/Instantiable.java b/src/main/scala/me/skymc/taboolib/common/loader/Instantiable.java similarity index 100% rename from src/main/java/me/skymc/taboolib/common/loader/Instantiable.java rename to src/main/scala/me/skymc/taboolib/common/loader/Instantiable.java diff --git a/src/main/java/me/skymc/taboolib/common/loader/InstantiableLoader.java b/src/main/scala/me/skymc/taboolib/common/loader/InstantiableLoader.java similarity index 100% rename from src/main/java/me/skymc/taboolib/common/loader/InstantiableLoader.java rename to src/main/scala/me/skymc/taboolib/common/loader/InstantiableLoader.java diff --git a/src/main/java/me/skymc/taboolib/common/nms/NMSHandler.java b/src/main/scala/me/skymc/taboolib/common/nms/NMSHandler.java similarity index 100% rename from src/main/java/me/skymc/taboolib/common/nms/NMSHandler.java rename to src/main/scala/me/skymc/taboolib/common/nms/NMSHandler.java diff --git a/src/main/java/me/skymc/taboolib/common/nms/NMSHandlerImpl.java b/src/main/scala/me/skymc/taboolib/common/nms/NMSHandlerImpl.java similarity index 100% rename from src/main/java/me/skymc/taboolib/common/nms/NMSHandlerImpl.java rename to src/main/scala/me/skymc/taboolib/common/nms/NMSHandlerImpl.java diff --git a/src/main/java/me/skymc/taboolib/common/packet/TPacketHandler.java b/src/main/scala/me/skymc/taboolib/common/packet/TPacketHandler.java similarity index 100% rename from src/main/java/me/skymc/taboolib/common/packet/TPacketHandler.java rename to src/main/scala/me/skymc/taboolib/common/packet/TPacketHandler.java diff --git a/src/main/java/me/skymc/taboolib/common/packet/TPacketListener.java b/src/main/scala/me/skymc/taboolib/common/packet/TPacketListener.java similarity index 100% rename from src/main/java/me/skymc/taboolib/common/packet/TPacketListener.java rename to src/main/scala/me/skymc/taboolib/common/packet/TPacketListener.java diff --git a/src/main/java/me/skymc/taboolib/common/packet/channel/ChannelExecutor.java b/src/main/scala/me/skymc/taboolib/common/packet/channel/ChannelExecutor.java similarity index 100% rename from src/main/java/me/skymc/taboolib/common/packet/channel/ChannelExecutor.java rename to src/main/scala/me/skymc/taboolib/common/packet/channel/ChannelExecutor.java diff --git a/src/main/java/me/skymc/taboolib/common/packet/channel/InternalChannelExecutor.java b/src/main/scala/me/skymc/taboolib/common/packet/channel/InternalChannelExecutor.java similarity index 100% rename from src/main/java/me/skymc/taboolib/common/packet/channel/InternalChannelExecutor.java rename to src/main/scala/me/skymc/taboolib/common/packet/channel/InternalChannelExecutor.java diff --git a/src/main/java/me/skymc/taboolib/common/pathfinder/PathfinderCreator.java b/src/main/scala/me/skymc/taboolib/common/pathfinder/PathfinderCreator.java similarity index 100% rename from src/main/java/me/skymc/taboolib/common/pathfinder/PathfinderCreator.java rename to src/main/scala/me/skymc/taboolib/common/pathfinder/PathfinderCreator.java diff --git a/src/main/java/me/skymc/taboolib/common/pathfinder/PathfinderExecutor.java b/src/main/scala/me/skymc/taboolib/common/pathfinder/PathfinderExecutor.java similarity index 100% rename from src/main/java/me/skymc/taboolib/common/pathfinder/PathfinderExecutor.java rename to src/main/scala/me/skymc/taboolib/common/pathfinder/PathfinderExecutor.java diff --git a/src/main/java/me/skymc/taboolib/common/pathfinder/SimpleAi.java b/src/main/scala/me/skymc/taboolib/common/pathfinder/SimpleAi.java similarity index 100% rename from src/main/java/me/skymc/taboolib/common/pathfinder/SimpleAi.java rename to src/main/scala/me/skymc/taboolib/common/pathfinder/SimpleAi.java diff --git a/src/main/java/me/skymc/taboolib/common/pathfinder/SimpleAiSelector.java b/src/main/scala/me/skymc/taboolib/common/pathfinder/SimpleAiSelector.java similarity index 100% rename from src/main/java/me/skymc/taboolib/common/pathfinder/SimpleAiSelector.java rename to src/main/scala/me/skymc/taboolib/common/pathfinder/SimpleAiSelector.java diff --git a/src/main/java/me/skymc/taboolib/common/pathfinder/internal/InternalPathfinderCreator.java b/src/main/scala/me/skymc/taboolib/common/pathfinder/internal/InternalPathfinderCreator.java similarity index 100% rename from src/main/java/me/skymc/taboolib/common/pathfinder/internal/InternalPathfinderCreator.java rename to src/main/scala/me/skymc/taboolib/common/pathfinder/internal/InternalPathfinderCreator.java diff --git a/src/main/java/me/skymc/taboolib/common/pathfinder/internal/InternalPathfinderExecutor.java b/src/main/scala/me/skymc/taboolib/common/pathfinder/internal/InternalPathfinderExecutor.java similarity index 100% rename from src/main/java/me/skymc/taboolib/common/pathfinder/internal/InternalPathfinderExecutor.java rename to src/main/scala/me/skymc/taboolib/common/pathfinder/internal/InternalPathfinderExecutor.java diff --git a/src/main/java/me/skymc/taboolib/common/playercontainer/Container.java b/src/main/scala/me/skymc/taboolib/common/playercontainer/Container.java similarity index 100% rename from src/main/java/me/skymc/taboolib/common/playercontainer/Container.java rename to src/main/scala/me/skymc/taboolib/common/playercontainer/Container.java diff --git a/src/main/java/me/skymc/taboolib/common/playercontainer/PlayerContainer.java b/src/main/scala/me/skymc/taboolib/common/playercontainer/PlayerContainer.java similarity index 100% rename from src/main/java/me/skymc/taboolib/common/playercontainer/PlayerContainer.java rename to src/main/scala/me/skymc/taboolib/common/playercontainer/PlayerContainer.java diff --git a/src/main/java/me/skymc/taboolib/common/playercontainer/PlayerContainerLoader.java b/src/main/scala/me/skymc/taboolib/common/playercontainer/PlayerContainerLoader.java similarity index 100% rename from src/main/java/me/skymc/taboolib/common/playercontainer/PlayerContainerLoader.java rename to src/main/scala/me/skymc/taboolib/common/playercontainer/PlayerContainerLoader.java diff --git a/src/main/java/me/skymc/taboolib/common/schedule/TSchedule.java b/src/main/scala/me/skymc/taboolib/common/schedule/TSchedule.java similarity index 100% rename from src/main/java/me/skymc/taboolib/common/schedule/TSchedule.java rename to src/main/scala/me/skymc/taboolib/common/schedule/TSchedule.java diff --git a/src/main/java/me/skymc/taboolib/common/schedule/TScheduleData.java b/src/main/scala/me/skymc/taboolib/common/schedule/TScheduleData.java similarity index 100% rename from src/main/java/me/skymc/taboolib/common/schedule/TScheduleData.java rename to src/main/scala/me/skymc/taboolib/common/schedule/TScheduleData.java diff --git a/src/main/java/me/skymc/taboolib/common/schedule/TScheduleLoader.java b/src/main/scala/me/skymc/taboolib/common/schedule/TScheduleLoader.java similarity index 100% rename from src/main/java/me/skymc/taboolib/common/schedule/TScheduleLoader.java rename to src/main/scala/me/skymc/taboolib/common/schedule/TScheduleLoader.java diff --git a/src/main/java/me/skymc/taboolib/common/util/SimpleCounter.java b/src/main/scala/me/skymc/taboolib/common/util/SimpleCounter.java similarity index 100% rename from src/main/java/me/skymc/taboolib/common/util/SimpleCounter.java rename to src/main/scala/me/skymc/taboolib/common/util/SimpleCounter.java diff --git a/src/main/java/me/skymc/taboolib/common/util/SimpleIterator.java b/src/main/scala/me/skymc/taboolib/common/util/SimpleIterator.java similarity index 100% rename from src/main/java/me/skymc/taboolib/common/util/SimpleIterator.java rename to src/main/scala/me/skymc/taboolib/common/util/SimpleIterator.java diff --git a/src/main/java/me/skymc/taboolib/common/util/SimpleReflection.java b/src/main/scala/me/skymc/taboolib/common/util/SimpleReflection.java similarity index 100% rename from src/main/java/me/skymc/taboolib/common/util/SimpleReflection.java rename to src/main/scala/me/skymc/taboolib/common/util/SimpleReflection.java diff --git a/src/main/java/me/skymc/taboolib/common/versioncontrol/SimpleClassVisitor.java b/src/main/scala/me/skymc/taboolib/common/versioncontrol/SimpleClassVisitor.java similarity index 100% rename from src/main/java/me/skymc/taboolib/common/versioncontrol/SimpleClassVisitor.java rename to src/main/scala/me/skymc/taboolib/common/versioncontrol/SimpleClassVisitor.java diff --git a/src/main/java/me/skymc/taboolib/common/versioncontrol/SimpleMethodVisitor.java b/src/main/scala/me/skymc/taboolib/common/versioncontrol/SimpleMethodVisitor.java similarity index 100% rename from src/main/java/me/skymc/taboolib/common/versioncontrol/SimpleMethodVisitor.java rename to src/main/scala/me/skymc/taboolib/common/versioncontrol/SimpleMethodVisitor.java diff --git a/src/main/java/me/skymc/taboolib/common/versioncontrol/SimpleVersionControl.java b/src/main/scala/me/skymc/taboolib/common/versioncontrol/SimpleVersionControl.java similarity index 100% rename from src/main/java/me/skymc/taboolib/common/versioncontrol/SimpleVersionControl.java rename to src/main/scala/me/skymc/taboolib/common/versioncontrol/SimpleVersionControl.java diff --git a/src/main/java/me/skymc/taboolib/damage/DamageUtils.java b/src/main/scala/me/skymc/taboolib/damage/DamageUtils.java similarity index 100% rename from src/main/java/me/skymc/taboolib/damage/DamageUtils.java rename to src/main/scala/me/skymc/taboolib/damage/DamageUtils.java diff --git a/src/main/java/me/skymc/taboolib/database/GlobalDataManager.java b/src/main/scala/me/skymc/taboolib/database/GlobalDataManager.java similarity index 100% rename from src/main/java/me/skymc/taboolib/database/GlobalDataManager.java rename to src/main/scala/me/skymc/taboolib/database/GlobalDataManager.java diff --git a/src/main/java/me/skymc/taboolib/database/PlayerDataManager.java b/src/main/scala/me/skymc/taboolib/database/PlayerDataManager.java similarity index 100% rename from src/main/java/me/skymc/taboolib/database/PlayerDataManager.java rename to src/main/scala/me/skymc/taboolib/database/PlayerDataManager.java diff --git a/src/main/java/me/skymc/taboolib/events/CustomBookOpenEvent.java b/src/main/scala/me/skymc/taboolib/events/CustomBookOpenEvent.java similarity index 100% rename from src/main/java/me/skymc/taboolib/events/CustomBookOpenEvent.java rename to src/main/scala/me/skymc/taboolib/events/CustomBookOpenEvent.java diff --git a/src/main/java/me/skymc/taboolib/events/PlayerJumpEvent.java b/src/main/scala/me/skymc/taboolib/events/PlayerJumpEvent.java similarity index 100% rename from src/main/java/me/skymc/taboolib/events/PlayerJumpEvent.java rename to src/main/scala/me/skymc/taboolib/events/PlayerJumpEvent.java diff --git a/src/main/java/me/skymc/taboolib/events/PlayerLoadedEvent.java b/src/main/scala/me/skymc/taboolib/events/PlayerLoadedEvent.java similarity index 100% rename from src/main/java/me/skymc/taboolib/events/PlayerLoadedEvent.java rename to src/main/scala/me/skymc/taboolib/events/PlayerLoadedEvent.java diff --git a/src/main/java/me/skymc/taboolib/events/TPluginEnableEvent.java b/src/main/scala/me/skymc/taboolib/events/TPluginEnableEvent.java similarity index 100% rename from src/main/java/me/skymc/taboolib/events/TPluginEnableEvent.java rename to src/main/scala/me/skymc/taboolib/events/TPluginEnableEvent.java diff --git a/src/main/java/me/skymc/taboolib/events/TPluginLoadEvent.java b/src/main/scala/me/skymc/taboolib/events/TPluginLoadEvent.java similarity index 100% rename from src/main/java/me/skymc/taboolib/events/TPluginLoadEvent.java rename to src/main/scala/me/skymc/taboolib/events/TPluginLoadEvent.java diff --git a/src/main/java/me/skymc/taboolib/events/itag/AsyncPlayerReceiveNameTagEvent.java b/src/main/scala/me/skymc/taboolib/events/itag/AsyncPlayerReceiveNameTagEvent.java similarity index 100% rename from src/main/java/me/skymc/taboolib/events/itag/AsyncPlayerReceiveNameTagEvent.java rename to src/main/scala/me/skymc/taboolib/events/itag/AsyncPlayerReceiveNameTagEvent.java diff --git a/src/main/java/me/skymc/taboolib/events/itag/PlayerReceiveNameTagEvent.java b/src/main/scala/me/skymc/taboolib/events/itag/PlayerReceiveNameTagEvent.java similarity index 100% rename from src/main/java/me/skymc/taboolib/events/itag/PlayerReceiveNameTagEvent.java rename to src/main/scala/me/skymc/taboolib/events/itag/PlayerReceiveNameTagEvent.java diff --git a/src/main/java/me/skymc/taboolib/exception/PlayerOfflineException.java b/src/main/scala/me/skymc/taboolib/exception/PlayerOfflineException.java similarity index 100% rename from src/main/java/me/skymc/taboolib/exception/PlayerOfflineException.java rename to src/main/scala/me/skymc/taboolib/exception/PlayerOfflineException.java diff --git a/src/main/java/me/skymc/taboolib/exception/PluginNotFoundException.java b/src/main/scala/me/skymc/taboolib/exception/PluginNotFoundException.java similarity index 100% rename from src/main/java/me/skymc/taboolib/exception/PluginNotFoundException.java rename to src/main/scala/me/skymc/taboolib/exception/PluginNotFoundException.java diff --git a/src/main/java/me/skymc/taboolib/fileutils/ConfigUtils.java b/src/main/scala/me/skymc/taboolib/fileutils/ConfigUtils.java similarity index 100% rename from src/main/java/me/skymc/taboolib/fileutils/ConfigUtils.java rename to src/main/scala/me/skymc/taboolib/fileutils/ConfigUtils.java diff --git a/src/main/java/me/skymc/taboolib/fileutils/EncodeUtils.java b/src/main/scala/me/skymc/taboolib/fileutils/EncodeUtils.java similarity index 100% rename from src/main/java/me/skymc/taboolib/fileutils/EncodeUtils.java rename to src/main/scala/me/skymc/taboolib/fileutils/EncodeUtils.java diff --git a/src/main/java/me/skymc/taboolib/fileutils/FileUtils.java b/src/main/scala/me/skymc/taboolib/fileutils/FileUtils.java similarity index 100% rename from src/main/java/me/skymc/taboolib/fileutils/FileUtils.java rename to src/main/scala/me/skymc/taboolib/fileutils/FileUtils.java diff --git a/src/main/java/me/skymc/taboolib/fileutils/TLogs.java b/src/main/scala/me/skymc/taboolib/fileutils/TLogs.java similarity index 100% rename from src/main/java/me/skymc/taboolib/fileutils/TLogs.java rename to src/main/scala/me/skymc/taboolib/fileutils/TLogs.java diff --git a/src/main/java/me/skymc/taboolib/inventory/ItemUtils.java b/src/main/scala/me/skymc/taboolib/inventory/ItemUtils.java similarity index 100% rename from src/main/java/me/skymc/taboolib/inventory/ItemUtils.java rename to src/main/scala/me/skymc/taboolib/inventory/ItemUtils.java diff --git a/src/main/java/me/skymc/taboolib/inventory/builder/ItemBuilder.java b/src/main/scala/me/skymc/taboolib/inventory/builder/ItemBuilder.java similarity index 100% rename from src/main/java/me/skymc/taboolib/inventory/builder/ItemBuilder.java rename to src/main/scala/me/skymc/taboolib/inventory/builder/ItemBuilder.java diff --git a/src/main/java/me/skymc/taboolib/inventory/builder/MenuBuilder.java b/src/main/scala/me/skymc/taboolib/inventory/builder/MenuBuilder.java similarity index 100% rename from src/main/java/me/skymc/taboolib/inventory/builder/MenuBuilder.java rename to src/main/scala/me/skymc/taboolib/inventory/builder/MenuBuilder.java diff --git a/src/main/java/me/skymc/taboolib/inventory/builder/menu/MenuBuilderCallable.java b/src/main/scala/me/skymc/taboolib/inventory/builder/menu/MenuBuilderCallable.java similarity index 100% rename from src/main/java/me/skymc/taboolib/inventory/builder/menu/MenuBuilderCallable.java rename to src/main/scala/me/skymc/taboolib/inventory/builder/menu/MenuBuilderCallable.java diff --git a/src/main/java/me/skymc/taboolib/inventory/builder/menu/MenuBuilderEvent.java b/src/main/scala/me/skymc/taboolib/inventory/builder/menu/MenuBuilderEvent.java similarity index 100% rename from src/main/java/me/skymc/taboolib/inventory/builder/menu/MenuBuilderEvent.java rename to src/main/scala/me/skymc/taboolib/inventory/builder/menu/MenuBuilderEvent.java diff --git a/src/main/java/me/skymc/taboolib/inventory/builder/menu/MenuBuilderHolder.java b/src/main/scala/me/skymc/taboolib/inventory/builder/menu/MenuBuilderHolder.java similarity index 100% rename from src/main/java/me/skymc/taboolib/inventory/builder/menu/MenuBuilderHolder.java rename to src/main/scala/me/skymc/taboolib/inventory/builder/menu/MenuBuilderHolder.java diff --git a/src/main/java/me/skymc/taboolib/inventory/builder/menu/MenuBuilderItem.java b/src/main/scala/me/skymc/taboolib/inventory/builder/menu/MenuBuilderItem.java similarity index 100% rename from src/main/java/me/skymc/taboolib/inventory/builder/menu/MenuBuilderItem.java rename to src/main/scala/me/skymc/taboolib/inventory/builder/menu/MenuBuilderItem.java diff --git a/src/main/java/me/skymc/taboolib/inventory/builder/menu/MenuBuilderListener.java b/src/main/scala/me/skymc/taboolib/inventory/builder/menu/MenuBuilderListener.java similarity index 100% rename from src/main/java/me/skymc/taboolib/inventory/builder/menu/MenuBuilderListener.java rename to src/main/scala/me/skymc/taboolib/inventory/builder/menu/MenuBuilderListener.java diff --git a/src/main/java/me/skymc/taboolib/itagapi/TagDataHandler.java b/src/main/scala/me/skymc/taboolib/itagapi/TagDataHandler.java similarity index 100% rename from src/main/java/me/skymc/taboolib/itagapi/TagDataHandler.java rename to src/main/scala/me/skymc/taboolib/itagapi/TagDataHandler.java diff --git a/src/main/java/me/skymc/taboolib/itagapi/TagPacket.java b/src/main/scala/me/skymc/taboolib/itagapi/TagPacket.java similarity index 100% rename from src/main/java/me/skymc/taboolib/itagapi/TagPacket.java rename to src/main/scala/me/skymc/taboolib/itagapi/TagPacket.java diff --git a/src/main/java/me/skymc/taboolib/itagapi/TagPlayerData.java b/src/main/scala/me/skymc/taboolib/itagapi/TagPlayerData.java similarity index 100% rename from src/main/java/me/skymc/taboolib/itagapi/TagPlayerData.java rename to src/main/scala/me/skymc/taboolib/itagapi/TagPlayerData.java diff --git a/src/main/java/me/skymc/taboolib/itagapi/TagUtils.java b/src/main/scala/me/skymc/taboolib/itagapi/TagUtils.java similarity index 100% rename from src/main/java/me/skymc/taboolib/itagapi/TagUtils.java rename to src/main/scala/me/skymc/taboolib/itagapi/TagUtils.java diff --git a/src/main/java/me/skymc/taboolib/javascript/ScriptHandler.java b/src/main/scala/me/skymc/taboolib/javascript/ScriptHandler.java similarity index 100% rename from src/main/java/me/skymc/taboolib/javascript/ScriptHandler.java rename to src/main/scala/me/skymc/taboolib/javascript/ScriptHandler.java diff --git a/src/main/java/me/skymc/taboolib/json/tellraw/TellrawCreator.java b/src/main/scala/me/skymc/taboolib/json/tellraw/TellrawCreator.java similarity index 100% rename from src/main/java/me/skymc/taboolib/json/tellraw/TellrawCreator.java rename to src/main/scala/me/skymc/taboolib/json/tellraw/TellrawCreator.java diff --git a/src/main/java/me/skymc/taboolib/json/tellraw/TellrawJson.java b/src/main/scala/me/skymc/taboolib/json/tellraw/TellrawJson.java similarity index 100% rename from src/main/java/me/skymc/taboolib/json/tellraw/TellrawJson.java rename to src/main/scala/me/skymc/taboolib/json/tellraw/TellrawJson.java diff --git a/src/main/java/me/skymc/taboolib/json/tellraw/TellrawVersion.java b/src/main/scala/me/skymc/taboolib/json/tellraw/TellrawVersion.java similarity index 100% rename from src/main/java/me/skymc/taboolib/json/tellraw/TellrawVersion.java rename to src/main/scala/me/skymc/taboolib/json/tellraw/TellrawVersion.java diff --git a/src/main/java/me/skymc/taboolib/json/tellraw/internal/AbstractTellraw.java b/src/main/scala/me/skymc/taboolib/json/tellraw/internal/AbstractTellraw.java similarity index 100% rename from src/main/java/me/skymc/taboolib/json/tellraw/internal/AbstractTellraw.java rename to src/main/scala/me/skymc/taboolib/json/tellraw/internal/AbstractTellraw.java diff --git a/src/main/java/me/skymc/taboolib/json/tellraw/internal/InternalTellraw.java b/src/main/scala/me/skymc/taboolib/json/tellraw/internal/InternalTellraw.java similarity index 100% rename from src/main/java/me/skymc/taboolib/json/tellraw/internal/InternalTellraw.java rename to src/main/scala/me/skymc/taboolib/json/tellraw/internal/InternalTellraw.java diff --git a/src/main/java/me/skymc/taboolib/listener/ListenerNetWork.java b/src/main/scala/me/skymc/taboolib/listener/ListenerNetWork.java similarity index 100% rename from src/main/java/me/skymc/taboolib/listener/ListenerNetWork.java rename to src/main/scala/me/skymc/taboolib/listener/ListenerNetWork.java diff --git a/src/main/java/me/skymc/taboolib/listener/ListenerPlayerCommand.java b/src/main/scala/me/skymc/taboolib/listener/ListenerPlayerCommand.java similarity index 100% rename from src/main/java/me/skymc/taboolib/listener/ListenerPlayerCommand.java rename to src/main/scala/me/skymc/taboolib/listener/ListenerPlayerCommand.java diff --git a/src/main/java/me/skymc/taboolib/listener/ListenerPlayerJoinAndQuit.java b/src/main/scala/me/skymc/taboolib/listener/ListenerPlayerJoinAndQuit.java similarity index 100% rename from src/main/java/me/skymc/taboolib/listener/ListenerPlayerJoinAndQuit.java rename to src/main/scala/me/skymc/taboolib/listener/ListenerPlayerJoinAndQuit.java diff --git a/src/main/java/me/skymc/taboolib/listener/ListenerPlayerJump.java b/src/main/scala/me/skymc/taboolib/listener/ListenerPlayerJump.java similarity index 100% rename from src/main/java/me/skymc/taboolib/listener/ListenerPlayerJump.java rename to src/main/scala/me/skymc/taboolib/listener/ListenerPlayerJump.java diff --git a/src/main/java/me/skymc/taboolib/listener/ListenerPlugin.java b/src/main/scala/me/skymc/taboolib/listener/ListenerPlugin.java similarity index 100% rename from src/main/java/me/skymc/taboolib/listener/ListenerPlugin.java rename to src/main/scala/me/skymc/taboolib/listener/ListenerPlugin.java diff --git a/src/main/java/me/skymc/taboolib/listener/TListener.java b/src/main/scala/me/skymc/taboolib/listener/TListener.java similarity index 100% rename from src/main/java/me/skymc/taboolib/listener/TListener.java rename to src/main/scala/me/skymc/taboolib/listener/TListener.java diff --git a/src/main/java/me/skymc/taboolib/listener/TListenerCommand.java b/src/main/scala/me/skymc/taboolib/listener/TListenerCommand.java similarity index 100% rename from src/main/java/me/skymc/taboolib/listener/TListenerCommand.java rename to src/main/scala/me/skymc/taboolib/listener/TListenerCommand.java diff --git a/src/main/java/me/skymc/taboolib/listener/TListenerHandler.java b/src/main/scala/me/skymc/taboolib/listener/TListenerHandler.java similarity index 100% rename from src/main/java/me/skymc/taboolib/listener/TListenerHandler.java rename to src/main/scala/me/skymc/taboolib/listener/TListenerHandler.java diff --git a/src/main/java/me/skymc/taboolib/methods/ReflectionUtils.java b/src/main/scala/me/skymc/taboolib/methods/ReflectionUtils.java similarity index 100% rename from src/main/java/me/skymc/taboolib/methods/ReflectionUtils.java rename to src/main/scala/me/skymc/taboolib/methods/ReflectionUtils.java diff --git a/src/main/java/me/skymc/taboolib/mysql/IColumn.java b/src/main/scala/me/skymc/taboolib/mysql/IColumn.java similarity index 100% rename from src/main/java/me/skymc/taboolib/mysql/IColumn.java rename to src/main/scala/me/skymc/taboolib/mysql/IColumn.java diff --git a/src/main/java/me/skymc/taboolib/mysql/IHost.java b/src/main/scala/me/skymc/taboolib/mysql/IHost.java similarity index 100% rename from src/main/java/me/skymc/taboolib/mysql/IHost.java rename to src/main/scala/me/skymc/taboolib/mysql/IHost.java diff --git a/src/main/java/me/skymc/taboolib/mysql/builder/SQLColumn.java b/src/main/scala/me/skymc/taboolib/mysql/builder/SQLColumn.java similarity index 100% rename from src/main/java/me/skymc/taboolib/mysql/builder/SQLColumn.java rename to src/main/scala/me/skymc/taboolib/mysql/builder/SQLColumn.java diff --git a/src/main/java/me/skymc/taboolib/mysql/builder/SQLColumnOption.java b/src/main/scala/me/skymc/taboolib/mysql/builder/SQLColumnOption.java similarity index 100% rename from src/main/java/me/skymc/taboolib/mysql/builder/SQLColumnOption.java rename to src/main/scala/me/skymc/taboolib/mysql/builder/SQLColumnOption.java diff --git a/src/main/java/me/skymc/taboolib/mysql/builder/SQLColumnType.java b/src/main/scala/me/skymc/taboolib/mysql/builder/SQLColumnType.java similarity index 100% rename from src/main/java/me/skymc/taboolib/mysql/builder/SQLColumnType.java rename to src/main/scala/me/skymc/taboolib/mysql/builder/SQLColumnType.java diff --git a/src/main/java/me/skymc/taboolib/mysql/builder/SQLExecutor.java b/src/main/scala/me/skymc/taboolib/mysql/builder/SQLExecutor.java similarity index 100% rename from src/main/java/me/skymc/taboolib/mysql/builder/SQLExecutor.java rename to src/main/scala/me/skymc/taboolib/mysql/builder/SQLExecutor.java diff --git a/src/main/java/me/skymc/taboolib/mysql/builder/SQLHost.java b/src/main/scala/me/skymc/taboolib/mysql/builder/SQLHost.java similarity index 100% rename from src/main/java/me/skymc/taboolib/mysql/builder/SQLHost.java rename to src/main/scala/me/skymc/taboolib/mysql/builder/SQLHost.java diff --git a/src/main/java/me/skymc/taboolib/mysql/builder/SQLTable.java b/src/main/scala/me/skymc/taboolib/mysql/builder/SQLTable.java similarity index 100% rename from src/main/java/me/skymc/taboolib/mysql/builder/SQLTable.java rename to src/main/scala/me/skymc/taboolib/mysql/builder/SQLTable.java diff --git a/src/main/java/me/skymc/taboolib/mysql/builder/query/RunnableQuery.java b/src/main/scala/me/skymc/taboolib/mysql/builder/query/RunnableQuery.java similarity index 100% rename from src/main/java/me/skymc/taboolib/mysql/builder/query/RunnableQuery.java rename to src/main/scala/me/skymc/taboolib/mysql/builder/query/RunnableQuery.java diff --git a/src/main/java/me/skymc/taboolib/mysql/builder/query/RunnableUpdate.java b/src/main/scala/me/skymc/taboolib/mysql/builder/query/RunnableUpdate.java similarity index 100% rename from src/main/java/me/skymc/taboolib/mysql/builder/query/RunnableUpdate.java rename to src/main/scala/me/skymc/taboolib/mysql/builder/query/RunnableUpdate.java diff --git a/src/main/java/me/skymc/taboolib/mysql/builder/query/TaskResult.java b/src/main/scala/me/skymc/taboolib/mysql/builder/query/TaskResult.java similarity index 100% rename from src/main/java/me/skymc/taboolib/mysql/builder/query/TaskResult.java rename to src/main/scala/me/skymc/taboolib/mysql/builder/query/TaskResult.java diff --git a/src/main/java/me/skymc/taboolib/mysql/builder/query/TaskStatement.java b/src/main/scala/me/skymc/taboolib/mysql/builder/query/TaskStatement.java similarity index 100% rename from src/main/java/me/skymc/taboolib/mysql/builder/query/TaskStatement.java rename to src/main/scala/me/skymc/taboolib/mysql/builder/query/TaskStatement.java diff --git a/src/main/java/me/skymc/taboolib/mysql/hikari/HikariHandler.java b/src/main/scala/me/skymc/taboolib/mysql/hikari/HikariHandler.java similarity index 100% rename from src/main/java/me/skymc/taboolib/mysql/hikari/HikariHandler.java rename to src/main/scala/me/skymc/taboolib/mysql/hikari/HikariHandler.java diff --git a/src/main/java/me/skymc/taboolib/mysql/hikari/MapDataSource.java b/src/main/scala/me/skymc/taboolib/mysql/hikari/MapDataSource.java similarity index 100% rename from src/main/java/me/skymc/taboolib/mysql/hikari/MapDataSource.java rename to src/main/scala/me/skymc/taboolib/mysql/hikari/MapDataSource.java diff --git a/src/main/java/me/skymc/taboolib/mysql/sqlite/SQLiteColumn.java b/src/main/scala/me/skymc/taboolib/mysql/sqlite/SQLiteColumn.java similarity index 100% rename from src/main/java/me/skymc/taboolib/mysql/sqlite/SQLiteColumn.java rename to src/main/scala/me/skymc/taboolib/mysql/sqlite/SQLiteColumn.java diff --git a/src/main/java/me/skymc/taboolib/mysql/sqlite/SQLiteColumnOption.java b/src/main/scala/me/skymc/taboolib/mysql/sqlite/SQLiteColumnOption.java similarity index 100% rename from src/main/java/me/skymc/taboolib/mysql/sqlite/SQLiteColumnOption.java rename to src/main/scala/me/skymc/taboolib/mysql/sqlite/SQLiteColumnOption.java diff --git a/src/main/java/me/skymc/taboolib/mysql/sqlite/SQLiteColumnType.java b/src/main/scala/me/skymc/taboolib/mysql/sqlite/SQLiteColumnType.java similarity index 100% rename from src/main/java/me/skymc/taboolib/mysql/sqlite/SQLiteColumnType.java rename to src/main/scala/me/skymc/taboolib/mysql/sqlite/SQLiteColumnType.java diff --git a/src/main/java/me/skymc/taboolib/mysql/sqlite/SQLiteHost.java b/src/main/scala/me/skymc/taboolib/mysql/sqlite/SQLiteHost.java similarity index 100% rename from src/main/java/me/skymc/taboolib/mysql/sqlite/SQLiteHost.java rename to src/main/scala/me/skymc/taboolib/mysql/sqlite/SQLiteHost.java diff --git a/src/main/java/me/skymc/taboolib/object/WeightCollection.java b/src/main/scala/me/skymc/taboolib/object/WeightCollection.java similarity index 100% rename from src/main/java/me/skymc/taboolib/object/WeightCollection.java rename to src/main/scala/me/skymc/taboolib/object/WeightCollection.java diff --git a/src/main/java/me/skymc/taboolib/particle/EffLib.java b/src/main/scala/me/skymc/taboolib/particle/EffLib.java similarity index 100% rename from src/main/java/me/skymc/taboolib/particle/EffLib.java rename to src/main/scala/me/skymc/taboolib/particle/EffLib.java diff --git a/src/main/java/me/skymc/taboolib/particle/pack/ParticleData.java b/src/main/scala/me/skymc/taboolib/particle/pack/ParticleData.java similarity index 100% rename from src/main/java/me/skymc/taboolib/particle/pack/ParticleData.java rename to src/main/scala/me/skymc/taboolib/particle/pack/ParticleData.java diff --git a/src/main/java/me/skymc/taboolib/particle/pack/ParticlePack.java b/src/main/scala/me/skymc/taboolib/particle/pack/ParticlePack.java similarity index 100% rename from src/main/java/me/skymc/taboolib/particle/pack/ParticlePack.java rename to src/main/scala/me/skymc/taboolib/particle/pack/ParticlePack.java diff --git a/src/main/java/me/skymc/taboolib/particle/pack/ParticleType.java b/src/main/scala/me/skymc/taboolib/particle/pack/ParticleType.java similarity index 100% rename from src/main/java/me/skymc/taboolib/particle/pack/ParticleType.java rename to src/main/scala/me/skymc/taboolib/particle/pack/ParticleType.java diff --git a/src/main/java/me/skymc/taboolib/playerdata/DataUtils.java b/src/main/scala/me/skymc/taboolib/playerdata/DataUtils.java similarity index 100% rename from src/main/java/me/skymc/taboolib/playerdata/DataUtils.java rename to src/main/scala/me/skymc/taboolib/playerdata/DataUtils.java diff --git a/src/main/java/me/skymc/taboolib/plugin/PluginLoadState.java b/src/main/scala/me/skymc/taboolib/plugin/PluginLoadState.java similarity index 100% rename from src/main/java/me/skymc/taboolib/plugin/PluginLoadState.java rename to src/main/scala/me/skymc/taboolib/plugin/PluginLoadState.java diff --git a/src/main/java/me/skymc/taboolib/plugin/PluginLoadStateType.java b/src/main/scala/me/skymc/taboolib/plugin/PluginLoadStateType.java similarity index 100% rename from src/main/java/me/skymc/taboolib/plugin/PluginLoadStateType.java rename to src/main/scala/me/skymc/taboolib/plugin/PluginLoadStateType.java diff --git a/src/main/java/me/skymc/taboolib/plugin/PluginUnloadState.java b/src/main/scala/me/skymc/taboolib/plugin/PluginUnloadState.java similarity index 100% rename from src/main/java/me/skymc/taboolib/plugin/PluginUnloadState.java rename to src/main/scala/me/skymc/taboolib/plugin/PluginUnloadState.java diff --git a/src/main/java/me/skymc/taboolib/plugin/PluginUtils.java b/src/main/scala/me/skymc/taboolib/plugin/PluginUtils.java similarity index 100% rename from src/main/java/me/skymc/taboolib/plugin/PluginUtils.java rename to src/main/scala/me/skymc/taboolib/plugin/PluginUtils.java diff --git a/src/main/java/me/skymc/taboolib/scoreboard/ScoreboardUtil.java b/src/main/scala/me/skymc/taboolib/scoreboard/ScoreboardUtil.java similarity index 100% rename from src/main/java/me/skymc/taboolib/scoreboard/ScoreboardUtil.java rename to src/main/scala/me/skymc/taboolib/scoreboard/ScoreboardUtil.java diff --git a/src/main/java/me/skymc/taboolib/scoreboard/SimpleScoreboard.java b/src/main/scala/me/skymc/taboolib/scoreboard/SimpleScoreboard.java similarity index 100% rename from src/main/java/me/skymc/taboolib/scoreboard/SimpleScoreboard.java rename to src/main/scala/me/skymc/taboolib/scoreboard/SimpleScoreboard.java diff --git a/src/main/java/me/skymc/taboolib/socket/TabooLibClient.java b/src/main/scala/me/skymc/taboolib/socket/TabooLibClient.java similarity index 100% rename from src/main/java/me/skymc/taboolib/socket/TabooLibClient.java rename to src/main/scala/me/skymc/taboolib/socket/TabooLibClient.java diff --git a/src/main/java/me/skymc/taboolib/socket/TabooLibServer.java b/src/main/scala/me/skymc/taboolib/socket/TabooLibServer.java similarity index 100% rename from src/main/java/me/skymc/taboolib/socket/TabooLibServer.java rename to src/main/scala/me/skymc/taboolib/socket/TabooLibServer.java diff --git a/src/main/java/me/skymc/taboolib/socket/TabooLibSettings.java b/src/main/scala/me/skymc/taboolib/socket/TabooLibSettings.java similarity index 100% rename from src/main/java/me/skymc/taboolib/socket/TabooLibSettings.java rename to src/main/scala/me/skymc/taboolib/socket/TabooLibSettings.java diff --git a/src/main/java/me/skymc/taboolib/socket/packet/Packet.java b/src/main/scala/me/skymc/taboolib/socket/packet/Packet.java similarity index 100% rename from src/main/java/me/skymc/taboolib/socket/packet/Packet.java rename to src/main/scala/me/skymc/taboolib/socket/packet/Packet.java diff --git a/src/main/java/me/skymc/taboolib/socket/packet/PacketParser.java b/src/main/scala/me/skymc/taboolib/socket/packet/PacketParser.java similarity index 100% rename from src/main/java/me/skymc/taboolib/socket/packet/PacketParser.java rename to src/main/scala/me/skymc/taboolib/socket/packet/PacketParser.java diff --git a/src/main/java/me/skymc/taboolib/socket/packet/PacketSerializer.java b/src/main/scala/me/skymc/taboolib/socket/packet/PacketSerializer.java similarity index 100% rename from src/main/java/me/skymc/taboolib/socket/packet/PacketSerializer.java rename to src/main/scala/me/skymc/taboolib/socket/packet/PacketSerializer.java diff --git a/src/main/java/me/skymc/taboolib/socket/packet/PacketType.java b/src/main/scala/me/skymc/taboolib/socket/packet/PacketType.java similarity index 100% rename from src/main/java/me/skymc/taboolib/socket/packet/PacketType.java rename to src/main/scala/me/skymc/taboolib/socket/packet/PacketType.java diff --git a/src/main/java/me/skymc/taboolib/socket/packet/PacketValue.java b/src/main/scala/me/skymc/taboolib/socket/packet/PacketValue.java similarity index 100% rename from src/main/java/me/skymc/taboolib/socket/packet/PacketValue.java rename to src/main/scala/me/skymc/taboolib/socket/packet/PacketValue.java diff --git a/src/main/java/me/skymc/taboolib/socket/packet/impl/PacketAlive.java b/src/main/scala/me/skymc/taboolib/socket/packet/impl/PacketAlive.java similarity index 100% rename from src/main/java/me/skymc/taboolib/socket/packet/impl/PacketAlive.java rename to src/main/scala/me/skymc/taboolib/socket/packet/impl/PacketAlive.java diff --git a/src/main/java/me/skymc/taboolib/socket/packet/impl/PacketCommand.java b/src/main/scala/me/skymc/taboolib/socket/packet/impl/PacketCommand.java similarity index 100% rename from src/main/java/me/skymc/taboolib/socket/packet/impl/PacketCommand.java rename to src/main/scala/me/skymc/taboolib/socket/packet/impl/PacketCommand.java diff --git a/src/main/java/me/skymc/taboolib/socket/packet/impl/PacketEmpty.java b/src/main/scala/me/skymc/taboolib/socket/packet/impl/PacketEmpty.java similarity index 100% rename from src/main/java/me/skymc/taboolib/socket/packet/impl/PacketEmpty.java rename to src/main/scala/me/skymc/taboolib/socket/packet/impl/PacketEmpty.java diff --git a/src/main/java/me/skymc/taboolib/socket/packet/impl/PacketHeartbeat.java b/src/main/scala/me/skymc/taboolib/socket/packet/impl/PacketHeartbeat.java similarity index 100% rename from src/main/java/me/skymc/taboolib/socket/packet/impl/PacketHeartbeat.java rename to src/main/scala/me/skymc/taboolib/socket/packet/impl/PacketHeartbeat.java diff --git a/src/main/java/me/skymc/taboolib/socket/packet/impl/PacketJoin.java b/src/main/scala/me/skymc/taboolib/socket/packet/impl/PacketJoin.java similarity index 100% rename from src/main/java/me/skymc/taboolib/socket/packet/impl/PacketJoin.java rename to src/main/scala/me/skymc/taboolib/socket/packet/impl/PacketJoin.java diff --git a/src/main/java/me/skymc/taboolib/socket/packet/impl/PacketMessage.java b/src/main/scala/me/skymc/taboolib/socket/packet/impl/PacketMessage.java similarity index 100% rename from src/main/java/me/skymc/taboolib/socket/packet/impl/PacketMessage.java rename to src/main/scala/me/skymc/taboolib/socket/packet/impl/PacketMessage.java diff --git a/src/main/java/me/skymc/taboolib/socket/packet/impl/PacketQuit.java b/src/main/scala/me/skymc/taboolib/socket/packet/impl/PacketQuit.java similarity index 100% rename from src/main/java/me/skymc/taboolib/socket/packet/impl/PacketQuit.java rename to src/main/scala/me/skymc/taboolib/socket/packet/impl/PacketQuit.java diff --git a/src/main/java/me/skymc/taboolib/socket/server/ClientConnection.java b/src/main/scala/me/skymc/taboolib/socket/server/ClientConnection.java similarity index 100% rename from src/main/java/me/skymc/taboolib/socket/server/ClientConnection.java rename to src/main/scala/me/skymc/taboolib/socket/server/ClientConnection.java diff --git a/src/main/java/me/skymc/taboolib/sound/SoundPack.java b/src/main/scala/me/skymc/taboolib/sound/SoundPack.java similarity index 100% rename from src/main/java/me/skymc/taboolib/sound/SoundPack.java rename to src/main/scala/me/skymc/taboolib/sound/SoundPack.java diff --git a/src/main/java/me/skymc/taboolib/sound/SoundUtils.java b/src/main/scala/me/skymc/taboolib/sound/SoundUtils.java similarity index 100% rename from src/main/java/me/skymc/taboolib/sound/SoundUtils.java rename to src/main/scala/me/skymc/taboolib/sound/SoundUtils.java diff --git a/src/main/java/me/skymc/taboolib/string/ArrayUtils.java b/src/main/scala/me/skymc/taboolib/string/ArrayUtils.java similarity index 100% rename from src/main/java/me/skymc/taboolib/string/ArrayUtils.java rename to src/main/scala/me/skymc/taboolib/string/ArrayUtils.java diff --git a/src/main/java/me/skymc/taboolib/string/Language.java b/src/main/scala/me/skymc/taboolib/string/Language.java similarity index 100% rename from src/main/java/me/skymc/taboolib/string/Language.java rename to src/main/scala/me/skymc/taboolib/string/Language.java diff --git a/src/main/java/me/skymc/taboolib/string/LanguagePack.java b/src/main/scala/me/skymc/taboolib/string/LanguagePack.java similarity index 100% rename from src/main/java/me/skymc/taboolib/string/LanguagePack.java rename to src/main/scala/me/skymc/taboolib/string/LanguagePack.java diff --git a/src/main/java/me/skymc/taboolib/string/LanguageUtils.java b/src/main/scala/me/skymc/taboolib/string/LanguageUtils.java similarity index 100% rename from src/main/java/me/skymc/taboolib/string/LanguageUtils.java rename to src/main/scala/me/skymc/taboolib/string/LanguageUtils.java diff --git a/src/main/java/me/skymc/taboolib/string/PatternUtils.java b/src/main/scala/me/skymc/taboolib/string/PatternUtils.java similarity index 100% rename from src/main/java/me/skymc/taboolib/string/PatternUtils.java rename to src/main/scala/me/skymc/taboolib/string/PatternUtils.java diff --git a/src/main/java/me/skymc/taboolib/string/StringUtils.java b/src/main/scala/me/skymc/taboolib/string/StringUtils.java similarity index 100% rename from src/main/java/me/skymc/taboolib/string/StringUtils.java rename to src/main/scala/me/skymc/taboolib/string/StringUtils.java diff --git a/src/main/java/me/skymc/taboolib/string/VariableFormatter.java b/src/main/scala/me/skymc/taboolib/string/VariableFormatter.java similarity index 100% rename from src/main/java/me/skymc/taboolib/string/VariableFormatter.java rename to src/main/scala/me/skymc/taboolib/string/VariableFormatter.java diff --git a/src/main/java/me/skymc/taboolib/string/language2/Language2.java b/src/main/scala/me/skymc/taboolib/string/language2/Language2.java similarity index 100% rename from src/main/java/me/skymc/taboolib/string/language2/Language2.java rename to src/main/scala/me/skymc/taboolib/string/language2/Language2.java diff --git a/src/main/java/me/skymc/taboolib/string/language2/Language2Format.java b/src/main/scala/me/skymc/taboolib/string/language2/Language2Format.java similarity index 100% rename from src/main/java/me/skymc/taboolib/string/language2/Language2Format.java rename to src/main/scala/me/skymc/taboolib/string/language2/Language2Format.java diff --git a/src/main/java/me/skymc/taboolib/string/language2/Language2Line.java b/src/main/scala/me/skymc/taboolib/string/language2/Language2Line.java similarity index 100% rename from src/main/java/me/skymc/taboolib/string/language2/Language2Line.java rename to src/main/scala/me/skymc/taboolib/string/language2/Language2Line.java diff --git a/src/main/java/me/skymc/taboolib/string/language2/Language2Type.java b/src/main/scala/me/skymc/taboolib/string/language2/Language2Type.java similarity index 100% rename from src/main/java/me/skymc/taboolib/string/language2/Language2Type.java rename to src/main/scala/me/skymc/taboolib/string/language2/Language2Type.java diff --git a/src/main/java/me/skymc/taboolib/string/language2/Language2Value.java b/src/main/scala/me/skymc/taboolib/string/language2/Language2Value.java similarity index 100% rename from src/main/java/me/skymc/taboolib/string/language2/Language2Value.java rename to src/main/scala/me/skymc/taboolib/string/language2/Language2Value.java diff --git a/src/main/java/me/skymc/taboolib/string/language2/value/Language2Action.java b/src/main/scala/me/skymc/taboolib/string/language2/value/Language2Action.java similarity index 100% rename from src/main/java/me/skymc/taboolib/string/language2/value/Language2Action.java rename to src/main/scala/me/skymc/taboolib/string/language2/value/Language2Action.java diff --git a/src/main/java/me/skymc/taboolib/string/language2/value/Language2Book.java b/src/main/scala/me/skymc/taboolib/string/language2/value/Language2Book.java similarity index 100% rename from src/main/java/me/skymc/taboolib/string/language2/value/Language2Book.java rename to src/main/scala/me/skymc/taboolib/string/language2/value/Language2Book.java diff --git a/src/main/java/me/skymc/taboolib/string/language2/value/Language2Json.java b/src/main/scala/me/skymc/taboolib/string/language2/value/Language2Json.java similarity index 100% rename from src/main/java/me/skymc/taboolib/string/language2/value/Language2Json.java rename to src/main/scala/me/skymc/taboolib/string/language2/value/Language2Json.java diff --git a/src/main/java/me/skymc/taboolib/string/language2/value/Language2Json2.java b/src/main/scala/me/skymc/taboolib/string/language2/value/Language2Json2.java similarity index 100% rename from src/main/java/me/skymc/taboolib/string/language2/value/Language2Json2.java rename to src/main/scala/me/skymc/taboolib/string/language2/value/Language2Json2.java diff --git a/src/main/java/me/skymc/taboolib/string/language2/value/Language2Sound.java b/src/main/scala/me/skymc/taboolib/string/language2/value/Language2Sound.java similarity index 100% rename from src/main/java/me/skymc/taboolib/string/language2/value/Language2Sound.java rename to src/main/scala/me/skymc/taboolib/string/language2/value/Language2Sound.java diff --git a/src/main/java/me/skymc/taboolib/string/language2/value/Language2Text.java b/src/main/scala/me/skymc/taboolib/string/language2/value/Language2Text.java similarity index 100% rename from src/main/java/me/skymc/taboolib/string/language2/value/Language2Text.java rename to src/main/scala/me/skymc/taboolib/string/language2/value/Language2Text.java diff --git a/src/main/java/me/skymc/taboolib/string/language2/value/Language2Title.java b/src/main/scala/me/skymc/taboolib/string/language2/value/Language2Title.java similarity index 100% rename from src/main/java/me/skymc/taboolib/string/language2/value/Language2Title.java rename to src/main/scala/me/skymc/taboolib/string/language2/value/Language2Title.java diff --git a/src/main/java/me/skymc/taboolib/support/SupportWorldGuard.java b/src/main/scala/me/skymc/taboolib/support/SupportWorldGuard.java similarity index 100% rename from src/main/java/me/skymc/taboolib/support/SupportWorldGuard.java rename to src/main/scala/me/skymc/taboolib/support/SupportWorldGuard.java diff --git a/src/main/java/me/skymc/taboolib/timeutil/TimeFormatter.java b/src/main/scala/me/skymc/taboolib/timeutil/TimeFormatter.java similarity index 100% rename from src/main/java/me/skymc/taboolib/timeutil/TimeFormatter.java rename to src/main/scala/me/skymc/taboolib/timeutil/TimeFormatter.java diff --git a/src/main/java/me/skymc/taboolib/update/UpdateTask.java b/src/main/scala/me/skymc/taboolib/update/UpdateTask.java similarity index 100% rename from src/main/java/me/skymc/taboolib/update/UpdateTask.java rename to src/main/scala/me/skymc/taboolib/update/UpdateTask.java