Installation + Q&A:
Check the
https://github.com/Anarchick/ServerKeyboardBridge/wiki)
Skript example:
Code (Java):
on load
:
register key entry with id
"horse" named
"spawn your horse", description
"description", category
"page 1" and keycode
72
register key entry with id
"cmdMenu" named
"run /menu", category
"page 1" and keycode
77
#
72
for key H , you can find the list here
: https
:
//www.glfw.org/docs/latest/group__keys.html
#
77 is
for key M
on key pressed with id
"horse"
:
set
{_playerIsInGui
} to event
-
boolean
if
{_playerIsInGui
} is
false
:
spawn an horse at event
-player
equip last spawned horse with saddle
on key release with id
"cmdMenu"
:
# Check
if player is not in any GUI
if event
-
boolean is
false
:
make event
-player execute command
"/say hi"
on skb player join
:
send
"<lime>%event-player% has join the game with ServerKeyBoardBridge-%event-string%" to console
send
"<yellow>Thanks to use ServerKeyBoardBridge, enjoy our custom key binds :D" to event
-player
">(
https://github.com/Anarchick/ServerKeyboardBridge/wiki)
Skript example:
Code (Java):
on load
:
register key entry with id
"horse" named
"spawn your horse", description
"description", category
"page 1" and keycode
72
register key entry with id
"cmdMenu" named
"run /menu", category
"page 1" and keycode
77
#
72
for key H , you can find the list here
: https
:
//www.glfw.org/docs/latest/group__keys.html
#
77 is
for key M
on key pressed with id
"horse"
:
set
{_playerIsInGui
} to event
-
boolean
if
{_playerIsInGui
} is
false
:
spawn an horse at event
-player
equip last spawned horse with saddle
on key release with id
"cmdMenu"
:
# Check
if player is not in any GUI
if event
-
boolean is
false
:
make event
-player execute command
"/say hi"
on skb player join
:
send
"<lime>%event-player% has join the game with ServerKeyBoardBridge-%event-string%" to console
send
"<yellow>Thanks to use ServerKeyBoardBridge, enjoy our custom key binds :D" to event
-player