mirror of
https://github.com/SimplexDevelopment/FeelingLucky.git
synced 2025-04-02 15:23:15 +00:00
18 lines
373 B
Java
18 lines
373 B
Java
package io.github.simplex.crumb;
|
|
|
|
import org.bukkit.Bukkit;
|
|
|
|
public class SneakyWorker {
|
|
public static void sneakyTry(SneakyTry sneakyTry) {
|
|
try {
|
|
sneakyTry.tryThis();
|
|
} catch (Exception ex) {
|
|
Bukkit.getLogger().severe(ex.getMessage());
|
|
}
|
|
}
|
|
|
|
interface SneakyTry {
|
|
void tryThis() throws Exception;
|
|
}
|
|
}
|