mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-26 17:05:01 +00:00
Telesphoreo
d88509bf11
* Update Command_ride.java * ok, done (FS-156) * Fixes FS-137 * grammar fix * Remove a number of wipe commands we don't want anyway We shouldn't be wiping any of this data within the server now anyway so let's not tempt fate again. * Why overcomplicating things is a horrifically bad idea (#55) The longer I look into this plugin's code, the angrier I will become. This fixes 2 bugs in the /potion command: - Fixes non-admins being able to clear other players - Fixes NPE caused when trying to add potion effects to players who are not on the server as a non-admin. Both of these issues are caused by overcomplicating seemingly simple solutions, hence the name of this commit. Co-authored-by: Ryan <Wild1145@users.noreply.github.com> Co-authored-by: Nathan Curran <30569566+Focusvity@users.noreply.github.com> * Bug fixes, improvements, and removals (FS-192) (#46) * Three fixes * Fixes /tempban throwing a NullPointerException when trying to get a player who isn't on the server but was in the past * Fixes /tempban banning players for 24 hours regardless of the duration defined * Fixes /list -t throwing a NullPointerException when performed from a non-player source (such as Telnet) * Removes hubworld entriely * Configurable blacklists for tag, muted commands, and wildcard Changes: * Moves globally blocked commands to the `global` subsection of the original `blocked_commands` section. You *will* need to update your configurations * /wildcard's command blacklist is now configurable under the `wildcard` section in `blocked_commands`. * The commands muted players can't use are now configurable under the `muted` section in `blocked_commands`. * Removes some commented-out globally blocked command entries. Co-authored-by: Ryan <Wild1145@users.noreply.github.com> * Switched from -c to -ci (#63) Resolves FS-219 * Added new dependency to allow TFM to compile (#65) * Name change for Fleek (#64) * Add //g to blocked commands (#62) Co-authored-by: Nathan Curran <30569566+Focusvity@users.noreply.github.com> * Small modification to new TFGuilds (FS-255) (#67) * Calculate the player count without offline players (FS-247) (#68) Co-authored-by: Ryan <Wild1145@users.noreply.github.com> * Use long instead of int and use offset to check time (FS-181) (#69) * Use long instead of int and use offset to check time (FS-181) * Remove star import * Addresses FS-224 (#70) * Bump version * TotalFreedomMod May Update * Retired support for 2021.02 fully. (#72) * Rewrite Pterodactyl integration - Rewrite Pterodactyl integration - Bring back the restart command and fix the stop command to gracefully stop the server now - I had to update for Java 16, sorry. I can't get it to compile on 11 anymore anyway * Codacy * Actually document how you set it up Also, rename server key to client key. That was from the old API, renamed it to be consistent with 1.x API * Be even clearer * Update Command_restart.java * Update pom.xml Co-authored-by: Video <videogamesm12@gmail.com> Co-authored-by: Elmon11 <elmon11bussiness@gmail.com> Co-authored-by: Ryan <Wild1145@users.noreply.github.com> Co-authored-by: Nathan Curran <30569566+Focusvity@users.noreply.github.com>
502 lines
18 KiB
XML
502 lines
18 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<groupId>me.totalfreedom</groupId>
|
|
<artifactId>TotalFreedomMod</artifactId>
|
|
<version>2021.05</version>
|
|
<packaging>jar</packaging>
|
|
|
|
<properties>
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
<tfm.build.codename>Phoenix</tfm.build.codename>
|
|
<jar.finalName>${project.name}</jar.finalName>
|
|
<timestamp>${maven.build.timestamp}</timestamp>
|
|
<maven.build.timestamp.format>MM/dd/yyyy HH:mm</maven.build.timestamp.format>
|
|
</properties>
|
|
|
|
<name>TotalFreedomMod</name>
|
|
<description>Server modification for the TotalFreedom server</description>
|
|
<url>https://github.com/AtlasMediaGroup/TotalFreedomMod</url>
|
|
|
|
<licenses>
|
|
<license>
|
|
<name>TotalFreedom General License</name>
|
|
<url>https://github.com/TotalFreedom/License/blob/master/LICENSE.md</url>
|
|
</license>
|
|
</licenses>
|
|
|
|
<organization>
|
|
<name>TotalFreedom</name>
|
|
<url>https://totalfreedom.me</url>
|
|
</organization>
|
|
|
|
<scm>
|
|
<connection>scm:git:git@github.com:TFPatches/TotalFreedomMod.git</connection>
|
|
<developerConnection>scm:git:git@github.com:TFPatches/TotalFreedomMod.git</developerConnection>
|
|
<url>git@github.com:TFPatches/TotalFreedomMod.git</url>
|
|
</scm>
|
|
|
|
<repositories>
|
|
<repository>
|
|
<id>apache-snapshots</id>
|
|
<url>https://repository.apache.org/content/repositories/snapshots/</url>
|
|
</repository>
|
|
|
|
<repository>
|
|
<id>jitpack.io</id>
|
|
<url>https://jitpack.io</url>
|
|
</repository>
|
|
|
|
<repository>
|
|
<id>CodeMC</id>
|
|
<url>https://repo.codemc.org/repository/maven-public/</url>
|
|
</repository>
|
|
|
|
<repository>
|
|
<id>nms-repo</id>
|
|
<url>https://repo.codemc.org/repository/nms/</url>
|
|
</repository>
|
|
|
|
<repository>
|
|
<id>spigot-repo</id>
|
|
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
|
|
</repository>
|
|
|
|
<repository>
|
|
<id>enginehub</id>
|
|
<url>https://maven.enginehub.org/repo/</url>
|
|
</repository>
|
|
|
|
<repository>
|
|
<id>elmakers-repo</id>
|
|
<url>https://maven.elmakers.com/repository/</url>
|
|
</repository>
|
|
|
|
<repository>
|
|
<id>sk89q-snapshots</id>
|
|
<url>https://maven.sk89q.com/artifactory/repo</url>
|
|
</repository>
|
|
|
|
<repository>
|
|
<id>dv8tion</id>
|
|
<name>m2-dv8tion</name>
|
|
<url>https://m2.dv8tion.net/releases/</url>
|
|
</repository>
|
|
|
|
<repository>
|
|
<id>playpro</id>
|
|
<url>https://maven.playpro.com/</url>
|
|
</repository>
|
|
|
|
<repository>
|
|
<id>md_5-public</id>
|
|
<url>https://repo.md-5.net/content/groups/public/</url>
|
|
</repository>
|
|
|
|
<repository>
|
|
<id>dmulloy2-repo</id>
|
|
<url>https://repo.dmulloy2.net/nexus/repository/public/</url>
|
|
</repository>
|
|
|
|
<repository>
|
|
<id>sk89q-repo</id>
|
|
<url>https://maven.sk89q.com/repo/</url>
|
|
</repository>
|
|
|
|
<repository>
|
|
<id>papermc</id>
|
|
<url>https://papermc.io/repo/repository/maven-public/</url>
|
|
</repository>
|
|
|
|
<repository>
|
|
<id>ess-repo</id>
|
|
<url>https://ci.ender.zone/plugin/repository/everything/</url>
|
|
</repository>
|
|
|
|
<repository>
|
|
<id>mattmalec-repo</id>
|
|
<url>https://repo.mattmalec.com/repository/releases</url>
|
|
</repository>
|
|
</repositories>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
<groupId>commons-io</groupId>
|
|
<artifactId>commons-io</artifactId>
|
|
<version>2.8.0</version>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.apache.commons</groupId>
|
|
<artifactId>commons-lang3</artifactId>
|
|
<version>3.11</version>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>commons-codec</groupId>
|
|
<artifactId>commons-codec</artifactId>
|
|
<version>1.15</version>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.github.speedxx</groupId>
|
|
<artifactId>Mojangson</artifactId>
|
|
<version>1957eef8d6</version>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.bstats</groupId>
|
|
<artifactId>bstats-bukkit</artifactId>
|
|
<version>2.2.1</version>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.spigotmc</groupId>
|
|
<artifactId>spigot</artifactId>
|
|
<version>1.16.5-R0.1-SNAPSHOT</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.github.TotalFreedomMC</groupId>
|
|
<artifactId>BukkitTelnet</artifactId>
|
|
<version>541e9fdb84</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.github.TotalFreedomMC</groupId>
|
|
<artifactId>TF-LibsDisguises</artifactId>
|
|
<version>48f01cf2fe</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.sk89q.worldedit</groupId>
|
|
<artifactId>worldedit-bukkit</artifactId>
|
|
<version>7.3.0-SNAPSHOT</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>net.ess3</groupId>
|
|
<artifactId>EssentialsX</artifactId>
|
|
<version>2.18.2</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>net.dv8tion</groupId>
|
|
<artifactId>JDA</artifactId>
|
|
<version>4.3.0_277</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>net.coreprotect</groupId>
|
|
<artifactId>coreprotect</artifactId>
|
|
<version>19.5</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.sk89q.worldguard</groupId>
|
|
<artifactId>worldguard-bukkit</artifactId>
|
|
<version>7.0.5</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>io.papermc</groupId>
|
|
<artifactId>paperlib</artifactId>
|
|
<version>1.0.6</version>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.github.vexsoftware</groupId>
|
|
<artifactId>votifier</artifactId>
|
|
<version>v1.9</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>net.goldtreeservers</groupId>
|
|
<artifactId>worldguardextraflags</artifactId>
|
|
<version>4.0.0</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.reflections</groupId>
|
|
<artifactId>reflections</artifactId>
|
|
<version>0.9.12</version>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.javassist</groupId>
|
|
<artifactId>javassist</artifactId>
|
|
<version>3.27.0-GA</version>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.github.AtlasMediaGroup</groupId>
|
|
<artifactId>TFGuilds</artifactId>
|
|
<version>master-SNAPSHOT</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.jetbrains</groupId>
|
|
<artifactId>annotations</artifactId>
|
|
<version>20.1.0</version>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-checkstyle-plugin</artifactId>
|
|
<version>3.1.1</version>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.mattmalec</groupId>
|
|
<artifactId>Pterodactyl4J</artifactId>
|
|
<version>2.BETA_47</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-shade-plugin</artifactId>
|
|
<version>3.3.0-SNAPSHOT</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.junit.jupiter</groupId>
|
|
<artifactId>junit-jupiter</artifactId>
|
|
<version>5.4.2</version>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.eclipse.sisu</groupId>
|
|
<artifactId>org.eclipse.sisu.inject</artifactId>
|
|
<version>0.3.4</version>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<!-- Filter resources for build.properties -->
|
|
<resources>
|
|
<resource>
|
|
<directory>src/main/resources</directory>
|
|
<filtering>true</filtering>
|
|
</resource>
|
|
</resources>
|
|
|
|
<plugins>
|
|
<!-- Compiler -->
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<version>3.8.1</version>
|
|
<configuration>
|
|
<outputFileName>TotalFreedomMod.jar</outputFileName>
|
|
<compilerVersion>11</compilerVersion>
|
|
<source>11</source>
|
|
<target>11</target>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<!-- Git describe -->
|
|
<plugin>
|
|
<groupId>pl.project13.maven</groupId>
|
|
<artifactId>git-commit-id-plugin</artifactId>
|
|
<version>4.0.5</version>
|
|
<executions>
|
|
<execution>
|
|
<id>get-the-git-infos</id>
|
|
<goals>
|
|
<goal>revision</goal>
|
|
</goals>
|
|
</execution>
|
|
<execution>
|
|
<id>validate-the-git-infos</id>
|
|
<goals>
|
|
<goal>validateRevision</goal>
|
|
</goals>
|
|
<phase>package</phase>
|
|
</execution>
|
|
</executions>
|
|
<configuration>
|
|
<dotGitDirectory>${project.basedir}/.git</dotGitDirectory>
|
|
<prefix>git</prefix>
|
|
<dateFormat>yyyy-MM-dd HH:mm:ss</dateFormat>
|
|
<verbose>false</verbose>
|
|
<format>properties</format>
|
|
<failOnNoGitDirectory>false</failOnNoGitDirectory>
|
|
<failOnUnableToExtractRepoInfo>false</failOnUnableToExtractRepoInfo>
|
|
<includeOnlyProperties>
|
|
<includeOnlyProperty>git.commit.id.abbrev</includeOnlyProperty>
|
|
</includeOnlyProperties>
|
|
<gitDescribe>
|
|
<skip>false</skip>
|
|
<always>false</always>
|
|
<abbrev>7</abbrev>
|
|
<dirty>-dirty</dirty>
|
|
<match>*</match>
|
|
</gitDescribe>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<!-- Antrun -->
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
<version>1.8</version>
|
|
<executions>
|
|
<execution>
|
|
<id>default-cli</id>
|
|
<phase>initialize</phase>
|
|
<configuration>
|
|
<target>
|
|
<propertyfile file="${project.basedir}/src/main/resources/build.properties"
|
|
comment="Build information. Edit this to your liking.">
|
|
<entry key="buildAuthor" default="unknown"/>
|
|
<entry key="buildNumber" default="0"/>
|
|
<entry key="buildCodeName" value="${tfm.build.codename}"/>
|
|
<entry key="buildVersion" value="${project.version}"/>
|
|
<entry key="buildDate" value="${timestamp}"/>
|
|
<!--suppress UnresolvedMavenProperty -->
|
|
<entry key="buildHead" value="${git.commit.id.abbrev}"/>
|
|
</propertyfile>
|
|
</target>
|
|
</configuration>
|
|
<goals>
|
|
<goal>run</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
<!-- Properties -->
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>properties-maven-plugin</artifactId>
|
|
<version>1.0.0</version>
|
|
<executions>
|
|
<execution>
|
|
<phase>initialize</phase>
|
|
<goals>
|
|
<goal>read-project-properties</goal>
|
|
</goals>
|
|
<configuration>
|
|
<files>
|
|
<file>${project.basedir}/src/main/resources/build.properties</file>
|
|
</files>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
<!-- Buildnumber -->
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>buildnumber-maven-plugin</artifactId>
|
|
<version>1.4</version>
|
|
<executions>
|
|
<execution>
|
|
<phase>generate-resources</phase>
|
|
<goals>
|
|
<goal>create</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
|
|
<configuration>
|
|
<buildNumberPropertyName>maven.buildnumber</buildNumberPropertyName>
|
|
<buildNumberPropertiesFileLocation>${project.basedir}/src/main/resources/build.properties
|
|
</buildNumberPropertiesFileLocation>
|
|
<format>{0,number,#}</format>
|
|
<items>
|
|
<item>buildNumber</item>
|
|
</items>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<!-- Shade -->
|
|
<!-- NOTE: This should only be temporary. This will need to be updated when a stable build comes out
|
|
that supports Java 16 -->
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-shade-plugin</artifactId>
|
|
<version>3.3.0-SNAPSHOT</version>
|
|
<executions>
|
|
<execution>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>shade</goal>
|
|
</goals>
|
|
<configuration>
|
|
<minimizeJar>true</minimizeJar>
|
|
<relocations>
|
|
<relocation>
|
|
<pattern>io.papermc.lib</pattern>
|
|
<shadedPattern>me.totalfreedom.totalfreedommod.paperlib</shadedPattern>
|
|
</relocation>
|
|
<relocation>
|
|
<pattern>org.bstats</pattern>
|
|
<shadedPattern>me.totalfreedom.totalfreedommod</shadedPattern>
|
|
</relocation>
|
|
</relocations>
|
|
<artifactSet>
|
|
<includes>
|
|
<include>commons-io:commons-io</include>
|
|
<include>org.apache.commons:commons-lang3</include>
|
|
<include>commons-codec:commons-codec</include>
|
|
<include>org.reflections:reflections</include>
|
|
<include>org.javassist:javassist</include>
|
|
<include>io.papermc:paperlib</include>
|
|
<include>com.github.speedxx:Mojangson</include>
|
|
<include>org.bstats:bstats-bukkit</include>
|
|
<include>org.jetbrains:annotations</include>
|
|
<include>com.mattmalec:Pterodactyl4J</include>
|
|
</includes>
|
|
</artifactSet>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
|
|
<reporting>
|
|
<!-- Checkstyle -->
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-checkstyle-plugin</artifactId>
|
|
<version>3.1.1</version>
|
|
<configuration>
|
|
<configLocation>checkstyle.xml</configLocation>
|
|
<failOnViolation>true</failOnViolation>
|
|
<failsOnError>true</failsOnError>
|
|
<consoleOutput>true</consoleOutput>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</reporting>
|
|
</project>
|