Skip to content

Commit

Permalink
add bStats and fix package naming convention
Browse files Browse the repository at this point in the history
  • Loading branch information
xGinko committed Dec 27, 2022
1 parent 1329941 commit 6f67c70
Show file tree
Hide file tree
Showing 11 changed files with 47 additions and 26 deletions.
17 changes: 16 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>me.xGinko</groupId>
<artifactId>BetterWorldStats</artifactId>
<version>1.3</version>
<version>1.3.1</version>
<packaging>jar</packaging>

<name>BetterWorldStats</name>
Expand Down Expand Up @@ -38,6 +38,12 @@
<goal>shade</goal>
</goals>
<configuration>
<relocations>
<relocation>
<pattern>org.bstats</pattern>
<shadedPattern>me.xginko.betterworldstats.bstats</shadedPattern>
</relocation>
</relocations>
<createDependencyReducedPom>false</createDependencyReducedPom>
<minimizeJar>true</minimizeJar>
</configuration>
Expand Down Expand Up @@ -79,16 +85,25 @@
<version>1.12.2-R0.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<!-- PlaceholderAPI -->
<dependency>
<groupId>me.clip</groupId>
<artifactId>placeholderapi</artifactId>
<version>2.11.2</version>
<scope>provided</scope>
</dependency>
<!-- reflections used for auto-lang feature -->
<dependency>
<groupId>org.reflections</groupId>
<artifactId>reflections</artifactId>
<version>0.10.2</version>
</dependency>
<!-- bStats -->
<dependency>
<groupId>org.bstats</groupId>
<artifactId>bstats-bukkit</artifactId>
<version>3.0.0</version>
<scope>compile</scope>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package me.xGinko.BetterWorldStats;
package me.xGinko.betterworldstats;

import me.xGinko.BetterWorldStats.commands.BetterWSCmd;
import me.xGinko.BetterWorldStats.commands.WorldStatsCmd;
import me.xGinko.BetterWorldStats.config.ConfigCache;
import me.xGinko.BetterWorldStats.config.LanguageCache;
import me.xGinko.betterworldstats.commands.BetterWSCmd;
import me.xGinko.betterworldstats.commands.WorldStatsCmd;
import me.xGinko.betterworldstats.config.ConfigCache;
import me.xGinko.betterworldstats.config.LanguageCache;
import org.bstats.bukkit.Metrics;
import org.bukkit.ChatColor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
Expand Down Expand Up @@ -51,6 +52,11 @@ public void onEnable() {
logger.info(ChatColor.AQUA + "Registering commands");
getCommand("betterws").setExecutor(new BetterWSCmd());
getCommand("worldstats").setExecutor(new WorldStatsCmd());

// Metrics
logger.info("Loading Metrics");
new Metrics(this, 17204);

logger.info(ChatColor.AQUA + "Done.");
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package me.xGinko.BetterWorldStats;
package me.xGinko.betterworldstats;

import me.clip.placeholderapi.expansion.PlaceholderExpansion;
import me.xGinko.BetterWorldStats.config.ConfigCache;
import me.xGinko.betterworldstats.config.ConfigCache;
import org.bukkit.entity.Player;
import org.jetbrains.annotations.NotNull;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package me.xGinko.BetterWorldStats.commands;
package me.xGinko.betterworldstats.commands;

import me.xGinko.BetterWorldStats.commands.subcommands.ReloadCmd;
import me.xGinko.BetterWorldStats.commands.subcommands.VersionCmd;
import me.xGinko.betterworldstats.commands.subcommands.ReloadCmd;
import me.xGinko.betterworldstats.commands.subcommands.VersionCmd;
import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package me.xGinko.BetterWorldStats.commands;
package me.xGinko.betterworldstats.commands;

import org.bukkit.command.CommandSender;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package me.xGinko.BetterWorldStats.commands;
package me.xGinko.betterworldstats.commands;

import me.clip.placeholderapi.PlaceholderAPI;
import me.xGinko.BetterWorldStats.BetterWorldStats;
import me.xGinko.BetterWorldStats.config.ConfigCache;
import me.xGinko.betterworldstats.BetterWorldStats;
import me.xGinko.betterworldstats.config.ConfigCache;
import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package me.xGinko.BetterWorldStats.commands.subcommands;
package me.xGinko.betterworldstats.commands.subcommands;

import me.xGinko.BetterWorldStats.BetterWorldStats;
import me.xGinko.BetterWorldStats.commands.SubCommand;
import me.xGinko.betterworldstats.BetterWorldStats;
import me.xGinko.betterworldstats.commands.SubCommand;
import org.bukkit.ChatColor;
import org.bukkit.command.CommandSender;
import org.jetbrains.annotations.NotNull;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package me.xGinko.BetterWorldStats.commands.subcommands;
package me.xGinko.betterworldstats.commands.subcommands;

import me.xGinko.BetterWorldStats.BetterWorldStats;
import me.xGinko.BetterWorldStats.commands.SubCommand;
import me.xGinko.betterworldstats.BetterWorldStats;
import me.xGinko.betterworldstats.commands.SubCommand;
import org.bukkit.ChatColor;
import org.bukkit.command.CommandSender;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package me.xGinko.BetterWorldStats.config;
package me.xGinko.betterworldstats.config;

import me.xGinko.BetterWorldStats.BetterWorldStats;
import me.xGinko.betterworldstats.BetterWorldStats;
import org.bukkit.configuration.file.FileConfiguration;

import java.io.File;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package me.xGinko.BetterWorldStats.config;
package me.xGinko.betterworldstats.config;

import me.xGinko.BetterWorldStats.BetterWorldStats;
import me.xGinko.betterworldstats.BetterWorldStats;
import org.bukkit.configuration.InvalidConfigurationException;
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.configuration.file.YamlConfiguration;
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: BetterWorldStats
version: ${project.version}
main: me.xGinko.BetterWorldStats.BetterWorldStats
main: me.xGinko.betterworldstats.BetterWorldStats
prefix: BetterWorldStats
authors: [ xGinko ]
softdepend: [ PlaceholderAPI ]
Expand Down

0 comments on commit 6f67c70

Please sign in to comment.