File tree Expand file tree Collapse file tree 2 files changed +12
-10
lines changed
src/main/java/fi/fabianadrian/playerlist Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ dependencies {
26
26
compileOnly(" io.github.miniplaceholders:miniplaceholders-api:2.3.0" )
27
27
28
28
implementation(" org.spongepowered:configurate-yaml:4.2.0" )
29
+ implementation(" org.bstats:bstats-bukkit:3.0.2" )
29
30
}
30
31
31
32
paperPluginYaml {
@@ -60,12 +61,6 @@ java.toolchain {
60
61
languageVersion.set(JavaLanguageVersion .of(21 ))
61
62
}
62
63
63
- tasks {
64
- compileJava {
65
- options.encoding = " UTF-8"
66
- }
67
- }
68
-
69
64
spotless {
70
65
java {
71
66
endWithNewline()
@@ -80,14 +75,18 @@ tasks {
80
75
build {
81
76
dependsOn(shadowJar)
82
77
}
78
+ compileJava {
79
+ options.encoding = " UTF-8"
80
+ }
83
81
shadowJar {
84
82
minimize()
85
83
sequenceOf(
86
- " org.spongepowered.configurate " ,
84
+ " io.leangen.geantyref " ,
87
85
" net.kyori.option" ,
88
- " io.leangen.geantyref"
89
- ).forEach { pkg ->
90
- relocate(pkg, " fi.fabianadrian.playerlist.dependency.$pkg " )
86
+ " org.bstats" ,
87
+ " org.spongepowered.configurate"
88
+ ).forEach {
89
+ relocate(it, " fi.fabianadrian.playerlist.dependency.$it " )
91
90
}
92
91
}
93
92
}
Original file line number Diff line number Diff line change 7
7
import fi .fabianadrian .playerlist .listener .JoinListener ;
8
8
import fi .fabianadrian .playerlist .locale .TranslationManager ;
9
9
import io .papermc .paper .plugin .lifecycle .event .types .LifecycleEvents ;
10
+ import org .bstats .bukkit .Metrics ;
10
11
import org .bukkit .entity .Player ;
11
12
import org .bukkit .plugin .PluginManager ;
12
13
import org .bukkit .plugin .java .JavaPlugin ;
@@ -41,6 +42,8 @@ public void onEnable() {
41
42
42
43
registerCommands ();
43
44
registerListeners ();
45
+
46
+ new Metrics (this , 25811 );
44
47
}
45
48
46
49
public Configuration configuration () {
You can’t perform that action at this time.
0 commit comments