mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-02 16:49:03 +00:00
5db6da334d
* Convert All Plugins To Java * Convert Rest Of Kt To Java & Remove Kt From Maven
19 lines
545 B
Java
19 lines
545 B
Java
package plugin.buttons;
|
|
|
|
import com.rs2.event.EventContext;
|
|
import com.rs2.event.EventSubscriber;
|
|
import com.rs2.event.impl.ButtonActionEvent;
|
|
import com.rs2.game.players.Player;
|
|
|
|
public abstract class ButtonClick implements EventSubscriber<ButtonActionEvent> {
|
|
|
|
@Override
|
|
public void subscribe(EventContext context, Player player, ButtonActionEvent event) {
|
|
execute(player, event);
|
|
}
|
|
|
|
protected abstract void execute(Player player, ButtonActionEvent event);
|
|
|
|
public abstract boolean test(ButtonActionEvent event);
|
|
}
|