blob: 2ee16da0abf1b8682e4ce6fd3c399010f9dc978c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
package net.nemez.chatapi.click;
import org.bukkit.command.CommandSender;
public class RunnableCallback extends ClickCallback {
private Runnable runnable;
public RunnableCallback(Runnable runnable, boolean repeatable, boolean async, String expiredMessage) {
super(repeatable, async, expiredMessage);
this.runnable = runnable;
}
@Override
public void run(CommandSender sender) {
runnable.run();
}
}
|