mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-03 00:31:51 +00:00
Kotlin -> Java (#586)
* Convert All Plugins To Java * Convert Rest Of Kt To Java & Remove Kt From Maven
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user