0

Added the ability to hide or replace the log message for commands

Mainly used for sensitive information, like passwords
This commit is contained in:
Minenash
2019-02-01 23:16:25 -05:00
parent ae5494f203
commit c402986304
5 changed files with 163 additions and 2 deletions

View File

@@ -11,6 +11,7 @@ import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import com.redstoner.annotations.Version;
import com.redstoner.coremods.moduleLoader.ModuleLoader;
import net.nemez.chatapi.ChatAPI;
import net.nemez.chatapi.click.Message;
@@ -188,4 +189,15 @@ public final class Utils
{
return UUID_pattern.matcher(toCheck).matches();
}
public static void run(Runnable r) {
run(r, 0);
}
public static void run(Runnable r, int delay) {
Bukkit.getScheduler().scheduleSyncDelayedTask(ModuleLoader.getPlugin(), r, delay);
}
}