Skip to content

Commit d146ce4

Browse files
committed
Added bStats
1 parent 166298f commit d146ce4

2 files changed

Lines changed: 18 additions & 5 deletions

File tree

pom.xml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,15 @@
3131
<groupId>org.apache.maven.plugins</groupId>
3232
<artifactId>maven-shade-plugin</artifactId>
3333
<version>3.2.4</version>
34+
<configuration>
35+
<relocations>
36+
<relocation>
37+
<pattern>org.bstats</pattern>
38+
<!-- Replace this with your package! -->
39+
<shadedPattern>tech.codemein.aichat</shadedPattern>
40+
</relocation>
41+
</relocations>
42+
</configuration>
3443
<executions>
3544
<execution>
3645
<phase>package</phase>
@@ -64,6 +73,12 @@
6473
</repositories>
6574

6675
<dependencies>
76+
<dependency>
77+
<groupId>org.bstats</groupId>
78+
<artifactId>bstats-bukkit</artifactId>
79+
<version>3.0.0</version>
80+
<scope>compile</scope>
81+
</dependency>
6782
<dependency>
6883
<groupId>io.github.jetkai</groupId>
6984
<artifactId>openai</artifactId>

src/main/java/tech/codemein/aichat/managers/PluginManager.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package tech.codemein.aichat.managers;
22

3+
import org.bstats.bukkit.Metrics;
34
import tech.codemein.aichat.Main;
45
import tech.codemein.aichat.commands.ASKCommand;
56
import tech.codemein.aichat.commands.MainCommand;
6-
import tech.codemein.aichat.listeners.ChatListener;
77

88
public class PluginManager {
99
public void start() {
@@ -13,14 +13,12 @@ public void start() {
1313
new FileManager().onStartup();
1414
new FileManager().setStringInConfig("Version", Main.getInstance().getDescription().getVersion());
1515

16-
Main.getInstance().getLogger().info("Loading ChatListener.");
17-
if (FileManager.config.getBoolean("ColorfulChatEnabled"))
18-
Main.getInstance().getServer().getPluginManager().registerEvents(new ChatListener(), Main.getInstance());
19-
2016
Main.getInstance().getLogger().info("Loading Commands.");
2117
Main.getInstance().getCommand("ask").setExecutor(new ASKCommand());
2218
Main.getInstance().getCommand("aichat").setExecutor(new MainCommand());
2319

20+
Metrics metrics = new Metrics(Main.getInstance(), 17944);
21+
2422
UpdateManager.startUpdater();
2523
}
2624

0 commit comments

Comments
 (0)