File tree Expand file tree Collapse file tree 4 files changed +12
-4
lines changed
Expand file tree Collapse file tree 4 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -31,9 +31,10 @@ dependencies {
3131 compileOnly(" io.papermc.paper:paper-api:1.21.1-R0.1-SNAPSHOT" )
3232 compileOnly ' io.th0rgal:oraxen:1.184.1'
3333 compileOnly(" com.sk89q.worldedit:worldedit-bukkit:7.2.15" )
34- implementation(" com.google.guava:guava:10 .0.1" )
34+ implementation(' com.google.guava:guava:32 .0.1-android ' )
3535 implementation(" org.xerial:sqlite-jdbc:3.50.3.0" )
3636 implementation(" com.j256.ormlite:ormlite-jdbc:6.1" )
37+ implementation ' org.bstats:bstats-bukkit:3.0.0'
3738}
3839
3940java {
Original file line number Diff line number Diff line change 22
33import dev .lotus .studio .database .DatabaseInitializer ;
44import dev .lotus .studio .database .playerdata .PlayerDataService ;
5+ import org .bstats .bukkit .Metrics ;
56import org .bukkit .event .HandlerList ;
67import org .bukkit .plugin .java .JavaPlugin ;
78import dev .lotus .studio .database .savezone .SafeZoneDataService ;
@@ -25,7 +26,7 @@ public final class Main extends JavaPlugin {
2526
2627 @ Override
2728 public void onEnable () {
28-
29+ metric ();
2930 instance = this ;
3031 PlayerManager .getInstance ().startGlobalTask ();
3132 //cfg
@@ -62,6 +63,12 @@ public void onDisable() {
6263 getLogger ().info ("LotusOffSeason plugin disabled!" );
6364 HandlerList .unregisterAll (this );
6465 }
66+ private void metric (){
67+ int pluginId = 27359 ;
68+ Metrics metrics = new Metrics (this , pluginId );
69+ }
70+
71+
6572 public PlayerDataService getPlayerDataBase () {
6673 return playerDataBase ;
6774 }
Original file line number Diff line number Diff line change 11package dev .lotus .studio .command ;
22
33import dev .lotus .studio .database .savezone .SafeZoneDataBase ;
4- import dev .lotus .studio .database .savezone .SafeZoneDataService ;
54import dev .lotus .studio .safezone .SafeZone ;
65import dev .lotus .studio .safezone .SafeZoneManager ;
76import net .kyori .adventure .text .Component ;
Original file line number Diff line number Diff line change @@ -6,7 +6,8 @@ soft-depend: [Oraxen]
66libraries :
77 - org.xerial:sqlite-jdbc:3.50.3.0
88 - com.j256.ormlite:ormlite-jdbc:6.1
9- - com.google.guava:guava:10.0.1
9+ - com.google.guava:guava:32.0.1-android
10+ - org.bstats:bstats-bukkit:3.0.0
1011commands :
1112 lotus :
1213 description : Перезагрузка конфигурации плагина.
You can’t perform that action at this time.
0 commit comments