Skip to content

Commit

Permalink
[add]bStats
Browse files Browse the repository at this point in the history
  • Loading branch information
nova-27 committed Mar 7, 2021
1 parent 94d7fba commit d7cc3e7
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
15 changes: 15 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.4</version>
<configuration>
<relocations>
<relocation>
<pattern>org.bstats</pattern>
<shadedPattern>work.novablog.mcplugin.discordconnect.util</shadedPattern>
</relocation>
</relocations>
</configuration>
<executions>
<execution>
<phase>package</phase>
Expand Down Expand Up @@ -116,5 +124,12 @@
<scope>system</scope>
<systemPath>${basedir}/libs/SMFB_Core-7.0.jar</systemPath>
</dependency>

<dependency>
<groupId>org.bstats</groupId>
<artifactId>bstats-bungeecord</artifactId>
<version>2.2.1</version>
<scope>compile</scope>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import net.md_5.bungee.config.Configuration;
import net.md_5.bungee.config.ConfigurationProvider;
import net.md_5.bungee.config.YamlConfiguration;
import org.bstats.bungeecord.Metrics;
import work.novablog.mcplugin.discordconnect.command.BungeeMinecraftCommand;
import work.novablog.mcplugin.discordconnect.listener.BungeeListener;
import work.novablog.mcplugin.discordconnect.listener.ChatCasterListener;
Expand Down Expand Up @@ -80,6 +81,9 @@ public ChatCasterListener getChatCasterListener() {
public void onEnable() {
instance = this;

//bstats
new Metrics(this, 7990);

//N8ChatCasterと連携
Plugin temp = getProxy().getPluginManager().getPlugin("N8ChatCaster");
if (temp instanceof N8ChatCasterPlugin) {
Expand Down

0 comments on commit d7cc3e7

Please sign in to comment.