File tree Expand file tree Collapse file tree
src/main/java/tech/codemein/aichat/managers Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 >
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 >
Original file line number Diff line number Diff line change 11package tech .codemein .aichat .managers ;
22
3+ import org .bstats .bukkit .Metrics ;
34import tech .codemein .aichat .Main ;
45import tech .codemein .aichat .commands .ASKCommand ;
56import tech .codemein .aichat .commands .MainCommand ;
6- import tech .codemein .aichat .listeners .ChatListener ;
77
88public 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
You can’t perform that action at this time.
0 commit comments