mirror of
https://github.com/YouHaveTrouble/CommandWhitelist.git
synced 2026-05-12 06:26:57 +00:00
make bukkit module folia compatible
thanks to @Aitooor for figuring out what needed to be changed
This commit is contained in:
+2
-1
@@ -21,6 +21,7 @@ import org.bukkit.plugin.java.JavaPlugin;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.*;
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
|
||||
public class CommandWhitelistBukkit extends JavaPlugin {
|
||||
|
||||
@@ -78,7 +79,7 @@ public class CommandWhitelistBukkit extends JavaPlugin {
|
||||
}
|
||||
|
||||
public void reloadPluginConfig(CommandSender sender) {
|
||||
getServer().getScheduler().runTaskAsynchronously(this, () -> {
|
||||
CompletableFuture.runAsync(() -> {
|
||||
reloadPluginConfig();
|
||||
try {
|
||||
for (Player p : Bukkit.getOnlinePlayers()) {
|
||||
|
||||
@@ -5,6 +5,7 @@ api-version: 1.13
|
||||
main: eu.endermite.commandwhitelist.bukkit.CommandWhitelistBukkit
|
||||
authors: [YouHaveTrouble]
|
||||
website: youhavetrouble.me
|
||||
folia-supported: true
|
||||
softdepend:
|
||||
- ProtocolLib
|
||||
description: Control what commands players can use
|
||||
|
||||
Reference in New Issue
Block a user