mirror of
https://github.com/JEFF-Media-GbR/BetterTridents.git
synced 2025-02-05 20:51:18 +01:00
1.1.0
This commit is contained in:
parent
284b359006
commit
8eef2cf09b
2
CHANGELOG.md
Normal file
2
CHANGELOG.md
Normal file
@ -0,0 +1,2 @@
|
||||
## 1.1.0
|
||||
- Added UpdateChecker and bStats
|
25
pom.xml
25
pom.xml
@ -6,7 +6,7 @@
|
||||
<groupId>de.jeff_media</groupId>
|
||||
<name>NoTridentVoid</name>
|
||||
<artifactId>NoTridentVoid</artifactId>
|
||||
<version>1.0.0</version>
|
||||
<version>1.1.0</version>
|
||||
|
||||
<properties>
|
||||
<spigot.prefix>${project.name}</spigot.prefix>
|
||||
@ -38,7 +38,21 @@
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-shade-plugin</artifactId>
|
||||
<version>3.1.0</version>
|
||||
<version>3.2.1</version>
|
||||
<configuration>
|
||||
<relocations>
|
||||
<!-- Using the maven-shade-plugin to shade and relocate the UpdateChecker -->
|
||||
<!-- Replace "your.package" with your plugin's package name -->
|
||||
<relocation>
|
||||
<pattern>de.jeff_media.updatechecker</pattern>
|
||||
<shadedPattern>de.jeff_media.notridentvoid.updatechecker</shadedPattern>
|
||||
</relocation>
|
||||
<relocation>
|
||||
<pattern>org.bstats</pattern>
|
||||
<shadedPattern>de.jeff_Media.notridentvoid</shadedPattern>
|
||||
</relocation>
|
||||
</relocations>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>package</phase>
|
||||
@ -109,7 +123,12 @@
|
||||
<artifactId>SpigotUpdateChecker</artifactId>
|
||||
<version>1.2.1</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.bstats</groupId>
|
||||
<artifactId>bstats-bukkit</artifactId>
|
||||
<version>2.2.1</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<distributionManagement>
|
||||
|
@ -4,6 +4,7 @@ import de.jeff_media.notridentvoid.config.Config;
|
||||
import de.jeff_media.notridentvoid.listeners.ProjectileListener;
|
||||
import de.jeff_media.updatechecker.UpdateChecker;
|
||||
import de.jeff_media.updatechecker.UserAgentBuilder;
|
||||
import org.bstats.bukkit.Metrics;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.NamespacedKey;
|
||||
@ -30,13 +31,15 @@ public class Main extends JavaPlugin {
|
||||
LOYALTY_TAG = new NamespacedKey(this, "loyalty");
|
||||
reload();
|
||||
Bukkit.getPluginManager().registerEvents(new ProjectileListener(), this);
|
||||
Metrics metrics = new Metrics(this, 11460);
|
||||
}
|
||||
|
||||
public void reload() {
|
||||
new Config();
|
||||
UpdateChecker.init(this, "https://api.jeff-media.de/notridentvoid/latest-version.txt")
|
||||
.setDonationLink("https://paypal.me/mfnalex")
|
||||
.setDownloadLink("https://www.spigotmc.org/resources/authors/mfnalex.175238/")
|
||||
.setDownloadLink(92656)
|
||||
.setChangelogLink(92656)
|
||||
.setUserAgent(UserAgentBuilder.getDefaultUserAgent());
|
||||
if(getConfig().getString(Config.CHECK_FOR_UPDATES).equalsIgnoreCase("true")) {
|
||||
UpdateChecker.getInstance().checkEveryXHours(getConfig().getDouble(Config.UPDATE_CHECK_INTERVAL))
|
||||
|
Loading…
Reference in New Issue
Block a user