mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2026-08-25 20:35:14 -06:00
Merge pull request #26 from bushtail/LeftClickAttack
Left Click Attack Plugin
This commit is contained in:
commit
6e4ebaf57b
1 changed files with 20 additions and 0 deletions
20
plugin-playground/src/main/kotlin/LeftClickAttack/plugin.kt
Normal file
20
plugin-playground/src/main/kotlin/LeftClickAttack/plugin.kt
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
package LeftClickAttack
|
||||
|
||||
import plugin.Plugin
|
||||
import plugin.annotations.PluginMeta
|
||||
import plugin.api.MiniMenuEntry
|
||||
|
||||
@PluginMeta(
|
||||
author = "bushtail",
|
||||
description = "Provides left-click attack for level > 128 combat.",
|
||||
version = 1.0
|
||||
)
|
||||
class plugin : Plugin() {
|
||||
override fun OnMiniMenuCreate(currentEntries: Array<out MiniMenuEntry>?) {
|
||||
if (currentEntries == null) return
|
||||
for (entry in currentEntries) {
|
||||
if(entry.verb.toLowerCase() == "attack" && entry.isStrictlySecondary)
|
||||
entry.toggleStrictlySecondary()
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue