going on an adventure

This commit is contained in:
2022-06-16 23:52:30 +02:00
parent 6fd3e4b671
commit b99c14b631
7 changed files with 135 additions and 69 deletions
@@ -11,6 +11,7 @@ import me.youhavetrouble.preventstabby.util.PreventStabbyListener;
import me.youhavetrouble.preventstabby.util.DatabaseSQLite;
import lombok.Getter;
import me.youhavetrouble.preventstabby.util.Util;
import net.kyori.adventure.platform.bukkit.BukkitAudiences;
import org.bstats.bukkit.Metrics;
import org.bukkit.command.CommandSender;
import org.bukkit.command.PluginCommand;
@@ -29,6 +30,8 @@ public final class PreventStabby extends JavaPlugin {
private SmartCache smartCache;
private static boolean worldGuardHook;
private static BukkitAudiences adventure;
@Override
public void onEnable() {
plugin = this;
@@ -43,6 +46,7 @@ public final class PreventStabby extends JavaPlugin {
getServer().getPluginManager().disablePlugin(this);
return;
}
adventure = BukkitAudiences.create(this);
playerManager = new PlayerManager();
smartCache = new SmartCache();
smartCache.runSmartCache();
@@ -114,4 +118,8 @@ public final class PreventStabby extends JavaPlugin {
public SmartCache getSmartCache() {
return smartCache;
}
public static BukkitAudiences getAudiences() {
return adventure;
}
}