mirror of
https://github.com/YouHaveTrouble/PreventStabby.git
synced 2026-05-12 13:26:56 +00:00
more folia support shenanigans
This commit is contained in:
@@ -33,7 +33,7 @@ public final class PreventStabby extends JavaPlugin {
|
||||
sqLite = new DatabaseSQLite("jdbc:sqlite:plugins/PreventStabby/database.db", dbFile, getLogger());
|
||||
playerManager = new PlayerManager(this);
|
||||
|
||||
// Register listeners TODO
|
||||
// Register listeners
|
||||
getServer().getPluginManager().registerEvents(new UtilListener(), this);
|
||||
getServer().getPluginManager().registerEvents(new PlayerListener(), this);
|
||||
getServer().getPluginManager().registerEvents(new EnvironmentalListener(this), this);
|
||||
@@ -80,7 +80,7 @@ public final class PreventStabby extends JavaPlugin {
|
||||
}
|
||||
|
||||
public void reloadPluginConfig(CommandSender commandSender) {
|
||||
getServer().getScheduler().runTaskAsynchronously(this, () -> {
|
||||
getServer().getAsyncScheduler().runNow(this, (task) -> {
|
||||
reloadPluginConfig();
|
||||
PluginMessages.sendMessage(commandSender, "PreventStabby configuration reloaded.");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user