Implemented bStats

This commit is contained in:
LabodiDavid 2022-05-02 15:13:03 +02:00
parent 8bdf268cf1
commit b12e66cc3a
5 changed files with 15 additions and 2 deletions

View File

@ -39,5 +39,7 @@
<orderEntry type="library" scope="PROVIDED" name="Maven: org.yaml:snakeyaml:1.30" level="project" />
<orderEntry type="library" scope="PROVIDED" name="Maven: org.bukkit:craftbukkit:1.18.2-R0.1-SNAPSHOT" level="project" />
<orderEntry type="library" scope="PROVIDED" name="Maven: com.mojang:brigadier:1.0.18" level="project" />
<orderEntry type="library" name="Maven: org.bstats:bstats-bukkit:3.0.0" level="project" />
<orderEntry type="library" name="Maven: org.bstats:bstats-base:3.0.0" level="project" />
</component>
</module>

View File

@ -4,5 +4,6 @@
- Minor changes
- Temporarily reworked Plugin Manager
- Added Update Checker (https://github.com/JEFF-Media-GbR/Spigot-UpdateChecker)
- Implemented Metrics (bStats)
- 1.0.0 - First Release
- Notice: If the /st reload command not reloading the new settings, you need to restart your MC server.

10
pom.xml
View File

@ -59,6 +59,10 @@
<pattern>com.jeff_media.updatechecker</pattern>
<shadedPattern>tk.ditservices.updatechecker</shadedPattern>
</relocation>
<relocation>
<pattern>org.bstats</pattern>
<shadedPattern>tk.ditservices.bstats</shadedPattern>
</relocation>
</relocations>
</configuration>
<executions>
@ -130,6 +134,12 @@
<version>1.0.18</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.bstats</groupId>
<artifactId>bstats-bukkit</artifactId>
<version>3.0.0</version>
<scope>compile</scope>
</dependency>
</dependencies>
</project>

View File

@ -1,7 +1,7 @@
package tk.ditservices;
import org.bstats.bukkit.Metrics;
import org.bukkit.scheduler.BukkitScheduler;
//import org.bukkit.craftbukkit.v1_18_R2.scheduler.CraftScheduler;
import tk.ditservices.commands.DitCmd;
import tk.ditservices.listeners.ChatEvents;
import tk.ditservices.listeners.LogChat;
@ -55,6 +55,7 @@ public final class DITSystem extends JavaPlugin implements CommandExecutor, List
.setUserAgent(new UserAgentBuilder().addPluginNameAndVersion())
.checkEveryXHours(24)
.checkNow();
Metrics metrics = new Metrics(this, 15108);
}
private void DIT_initialize() {

View File

@ -1,6 +1,5 @@
package tk.ditservices.utils;
import tk.ditservices.DITLog;
import tk.ditservices.DITSystem;
import org.bukkit.configuration.file.FileConfiguration;