Update to use Nexus
This commit is contained in:
parent
0df93530f1
commit
8efe844640
34
build.gradle
34
build.gradle
|
@ -3,7 +3,7 @@ plugins {
|
||||||
id 'maven-publish'
|
id 'maven-publish'
|
||||||
id 'idea'
|
id 'idea'
|
||||||
id 'com.github.johnrengelman.shadow' version '7.0.0'
|
id 'com.github.johnrengelman.shadow' version '7.0.0'
|
||||||
id 'net.minecrell.plugin-yml.bukkit' version '0.4.0'
|
id 'net.minecrell.plugin-yml.bukkit' version '0.5.0'
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
|
@ -20,6 +20,9 @@ repositories {
|
||||||
|
|
||||||
maven {
|
maven {
|
||||||
url = uri('https://repo.codemc.org/repository/nms/')
|
url = uri('https://repo.codemc.org/repository/nms/')
|
||||||
|
content {
|
||||||
|
includeGroup('org.spigotmc')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
maven {
|
maven {
|
||||||
|
@ -32,6 +35,11 @@ repositories {
|
||||||
|
|
||||||
maven {
|
maven {
|
||||||
url = uri('https://maven.elmakers.com/repository/')
|
url = uri('https://maven.elmakers.com/repository/')
|
||||||
|
content {
|
||||||
|
includeGroup('org.bukkit')
|
||||||
|
includeGroup('net.goldtreeservers')
|
||||||
|
includeGroup('de.bananaco')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
maven {
|
maven {
|
||||||
|
@ -40,6 +48,9 @@ repositories {
|
||||||
|
|
||||||
maven {
|
maven {
|
||||||
url = uri('https://maven.playpro.com/')
|
url = uri('https://maven.playpro.com/')
|
||||||
|
content {
|
||||||
|
includeGroup('net.coreprotect')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
maven {
|
maven {
|
||||||
|
@ -58,13 +69,26 @@ repositories {
|
||||||
url = uri('https://ci.ender.zone/plugin/repository/everything/')
|
url = uri('https://ci.ender.zone/plugin/repository/everything/')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
maven {
|
||||||
|
url = uri('https://nexus.telesphoreo.me/repository/totalfreedom/')
|
||||||
|
}
|
||||||
|
|
||||||
maven {
|
maven {
|
||||||
url = uri('https://repo.mattmalec.com/repository/releases')
|
url = uri('https://repo.mattmalec.com/repository/releases')
|
||||||
|
content {
|
||||||
|
includeGroup('com.mattmalec')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
maven {
|
maven {
|
||||||
url = uri('https://repo.essentialsx.net/releases/')
|
url = uri('https://repo.essentialsx.net/releases/')
|
||||||
|
content {
|
||||||
|
content {
|
||||||
|
includeGroup('net.essentialsx')
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
mavenCentral()
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
@ -74,13 +98,13 @@ dependencies {
|
||||||
implementation('io.papermc:paperlib:1.0.6')
|
implementation('io.papermc:paperlib:1.0.6')
|
||||||
implementation('org.reflections:reflections:0.9.12')
|
implementation('org.reflections:reflections:0.9.12')
|
||||||
implementation('org.javassist:javassist:3.28.0-GA')
|
implementation('org.javassist:javassist:3.28.0-GA')
|
||||||
implementation('org.jetbrains:annotations:21.0.1')
|
implementation('org.jetbrains:annotations:22.0.0')
|
||||||
implementation('com.mattmalec:Pterodactyl4J:2.BETA_80')
|
implementation('com.mattmalec:Pterodactyl4J:2.BETA_80')
|
||||||
implementation('org.junit.jupiter:junit-jupiter:5.8.1')
|
implementation('org.junit.jupiter:junit-jupiter:5.8.1')
|
||||||
implementation('org.projectlombok:lombok:1.18.20')
|
implementation('org.projectlombok:lombok:1.18.20')
|
||||||
compileOnly('org.spigotmc:spigot:1.17.1-R0.1-SNAPSHOT')
|
compileOnly('org.spigotmc:spigot:1.17.1-R0.1-SNAPSHOT')
|
||||||
compileOnly('com.github.TotalFreedomMC:BukkitTelnet:541e9fdb84')
|
compileOnly('me.totalfreedom:bukkittelnet:4.6')
|
||||||
compileOnly('com.github.TotalFreedomMC:TF-LibsDisguises:48f01cf2fe')
|
compileOnly('me.totalfreedom:TF-LibsDisguises:10.0.26-SNAPSHOT')
|
||||||
compileOnly('com.sk89q.worldedit:worldedit-bukkit:7.3.0-SNAPSHOT')
|
compileOnly('com.sk89q.worldedit:worldedit-bukkit:7.3.0-SNAPSHOT')
|
||||||
compileOnly('net.essentialsx:EssentialsX:2.19.0')
|
compileOnly('net.essentialsx:EssentialsX:2.19.0')
|
||||||
compileOnly('net.dv8tion:JDA:4.3.0_277')
|
compileOnly('net.dv8tion:JDA:4.3.0_277')
|
||||||
|
@ -88,7 +112,7 @@ dependencies {
|
||||||
compileOnly('com.sk89q.worldguard:worldguard-bukkit:7.0.6')
|
compileOnly('com.sk89q.worldguard:worldguard-bukkit:7.0.6')
|
||||||
compileOnly('com.github.vexsoftware:votifier:v1.9')
|
compileOnly('com.github.vexsoftware:votifier:v1.9')
|
||||||
compileOnly('net.goldtreeservers:worldguardextraflags:4.0.0')
|
compileOnly('net.goldtreeservers:worldguardextraflags:4.0.0')
|
||||||
compileOnly('com.github.AtlasMediaGroup:TFGuilds:master-SNAPSHOT')
|
compileOnly('me.totalfreedom:TFGuilds:2021.06-RC3')
|
||||||
}
|
}
|
||||||
|
|
||||||
group = 'me.totalfreedom'
|
group = 'me.totalfreedom'
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
|
|
|
@ -1,89 +1,89 @@
|
||||||
@rem
|
@rem
|
||||||
@rem Copyright 2015 the original author or authors.
|
@rem Copyright 2015 the original author or authors.
|
||||||
@rem
|
@rem
|
||||||
@rem Licensed under the Apache License, Version 2.0 (the "License");
|
@rem Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
@rem you may not use this file except in compliance with the License.
|
@rem you may not use this file except in compliance with the License.
|
||||||
@rem You may obtain a copy of the License at
|
@rem You may obtain a copy of the License at
|
||||||
@rem
|
@rem
|
||||||
@rem https://www.apache.org/licenses/LICENSE-2.0
|
@rem https://www.apache.org/licenses/LICENSE-2.0
|
||||||
@rem
|
@rem
|
||||||
@rem Unless required by applicable law or agreed to in writing, software
|
@rem Unless required by applicable law or agreed to in writing, software
|
||||||
@rem distributed under the License is distributed on an "AS IS" BASIS,
|
@rem distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
@rem See the License for the specific language governing permissions and
|
@rem See the License for the specific language governing permissions and
|
||||||
@rem limitations under the License.
|
@rem limitations under the License.
|
||||||
@rem
|
@rem
|
||||||
|
|
||||||
@if "%DEBUG%" == "" @echo off
|
@if "%DEBUG%" == "" @echo off
|
||||||
@rem ##########################################################################
|
@rem ##########################################################################
|
||||||
@rem
|
@rem
|
||||||
@rem Gradle startup script for Windows
|
@rem Gradle startup script for Windows
|
||||||
@rem
|
@rem
|
||||||
@rem ##########################################################################
|
@rem ##########################################################################
|
||||||
|
|
||||||
@rem Set local scope for the variables with windows NT shell
|
@rem Set local scope for the variables with windows NT shell
|
||||||
if "%OS%"=="Windows_NT" setlocal
|
if "%OS%"=="Windows_NT" setlocal
|
||||||
|
|
||||||
set DIRNAME=%~dp0
|
set DIRNAME=%~dp0
|
||||||
if "%DIRNAME%" == "" set DIRNAME=.
|
if "%DIRNAME%" == "" set DIRNAME=.
|
||||||
set APP_BASE_NAME=%~n0
|
set APP_BASE_NAME=%~n0
|
||||||
set APP_HOME=%DIRNAME%
|
set APP_HOME=%DIRNAME%
|
||||||
|
|
||||||
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
|
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
|
||||||
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
|
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
|
||||||
|
|
||||||
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
@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="-Xmx64m" "-Xms64m"
|
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
|
||||||
|
|
||||||
@rem Find java.exe
|
@rem Find java.exe
|
||||||
if defined JAVA_HOME goto findJavaFromJavaHome
|
if defined JAVA_HOME goto findJavaFromJavaHome
|
||||||
|
|
||||||
set JAVA_EXE=java.exe
|
set JAVA_EXE=java.exe
|
||||||
%JAVA_EXE% -version >NUL 2>&1
|
%JAVA_EXE% -version >NUL 2>&1
|
||||||
if "%ERRORLEVEL%" == "0" goto execute
|
if "%ERRORLEVEL%" == "0" goto execute
|
||||||
|
|
||||||
echo.
|
echo.
|
||||||
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
||||||
echo.
|
echo.
|
||||||
echo Please set the JAVA_HOME variable in your environment to match the
|
echo Please set the JAVA_HOME variable in your environment to match the
|
||||||
echo location of your Java installation.
|
echo location of your Java installation.
|
||||||
|
|
||||||
goto fail
|
goto fail
|
||||||
|
|
||||||
:findJavaFromJavaHome
|
:findJavaFromJavaHome
|
||||||
set JAVA_HOME=%JAVA_HOME:"=%
|
set JAVA_HOME=%JAVA_HOME:"=%
|
||||||
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
|
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
|
||||||
|
|
||||||
if exist "%JAVA_EXE%" goto execute
|
if exist "%JAVA_EXE%" goto execute
|
||||||
|
|
||||||
echo.
|
echo.
|
||||||
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
|
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
|
||||||
echo.
|
echo.
|
||||||
echo Please set the JAVA_HOME variable in your environment to match the
|
echo Please set the JAVA_HOME variable in your environment to match the
|
||||||
echo location of your Java installation.
|
echo location of your Java installation.
|
||||||
|
|
||||||
goto fail
|
goto fail
|
||||||
|
|
||||||
:execute
|
:execute
|
||||||
@rem Setup the command line
|
@rem Setup the command line
|
||||||
|
|
||||||
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
|
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
|
||||||
|
|
||||||
|
|
||||||
@rem Execute Gradle
|
@rem Execute Gradle
|
||||||
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
|
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
|
||||||
|
|
||||||
:end
|
:end
|
||||||
@rem End local scope for the variables with windows NT shell
|
@rem End local scope for the variables with windows NT shell
|
||||||
if "%ERRORLEVEL%"=="0" goto mainEnd
|
if "%ERRORLEVEL%"=="0" goto mainEnd
|
||||||
|
|
||||||
:fail
|
:fail
|
||||||
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
|
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
|
||||||
rem the _cmd.exe /c_ return code!
|
rem the _cmd.exe /c_ return code!
|
||||||
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
|
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
|
||||||
exit /b 1
|
exit /b 1
|
||||||
|
|
||||||
:mainEnd
|
:mainEnd
|
||||||
if "%OS%"=="Windows_NT" endlocal
|
if "%OS%"=="Windows_NT" endlocal
|
||||||
|
|
||||||
:omega
|
:omega
|
||||||
|
|
|
@ -102,14 +102,14 @@ public class Pterodactyl extends FreedomService
|
||||||
public void restartServer()
|
public void restartServer()
|
||||||
{
|
{
|
||||||
ClientServer server = clientAPI.retrieveServerByIdentifier(IDENTIFIER).execute();
|
ClientServer server = clientAPI.retrieveServerByIdentifier(IDENTIFIER).execute();
|
||||||
clientAPI.setPower(server, PowerAction.RESTART).execute();
|
server.setPower(PowerAction.RESTART).execute();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void fionnTheServer()
|
public void fionnTheServer()
|
||||||
{
|
{
|
||||||
ClientServer server = clientAPI.retrieveServerByIdentifier(IDENTIFIER).execute();
|
ClientServer server = clientAPI.retrieveServerByIdentifier(IDENTIFIER).execute();
|
||||||
clientAPI.setPower(server, PowerAction.STOP).execute();
|
clientAPI.setPower(server, PowerAction.STOP).execute();
|
||||||
plugin.getServer().getScheduler().scheduleSyncRepeatingTask(plugin, () -> clientAPI.setPower(server, PowerAction.KILL).execute(), 0, 60);
|
plugin.getServer().getScheduler().scheduleSyncRepeatingTask(plugin, () -> server.setPower(PowerAction.KILL).execute(), 0, 60);
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getURL()
|
public String getURL()
|
||||||
|
|
Loading…
Reference in New Issue