mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-03 00:31:51 +00:00
c2f325b4e7
* Server: Ripped PluginService From Astreaus-V2 This Removes The Need For Plugin MetaData * Plugins: Handle Emote Tab Run Buttons * Add Some Settings Button Plugins Brightness Buttons Music Volume Buttons Walk/Run Buttons Toggle SplitPrivate-Chat * Fix Player Still Running With 0 Energy Fixes Players Continuing To Run For The Rest Of Their Current Movement Task Even If They Run Out Of Energy
20 lines
440 B
Kotlin
20 lines
440 B
Kotlin
package plugin.buttons.gameframe
|
|
|
|
import com.rs2.event.SubscribesTo
|
|
import com.rs2.event.impl.ButtonActionEvent
|
|
|
|
import com.rs2.game.players.Player
|
|
import plugin.buttons.ButtonClick
|
|
|
|
@SubscribesTo(ButtonActionEvent::class)
|
|
class LogoutButton : ButtonClick() {
|
|
|
|
override fun execute(player: Player, event: ButtonActionEvent) {
|
|
player.logout()
|
|
}
|
|
|
|
override fun test(event: ButtonActionEvent): Boolean {
|
|
return event.button == 9154
|
|
}
|
|
|
|
} |