Information
------------------------
API that provides the ability to create a custom sign editor for the player to enter any input on it. The plugin doesn't do anything in the server unless other plugins ask it to do.
Requirements
------------------------
PacketListenerAPI
JitPack
------------------------
https://jitpack.io/#iHDeveloper/sign-editor-api/v1.0
Usage
------------------------
- Add the plugin to your plugin dependencies.
Code (YAML):
depend
:
- sign-editor-api
Getting Started
------------------------
Code (Java):
/* Default lines that shows to the player */
final
String
[
] defaultLines
=
{
"",
/* Where the player is going to write */
"===========",
"This is",
"Test Input"
}
;
SignEditorAPI.
open
(player,
(player, lines
)
->
{
System.
out.
println
(
"Submitted Input: "
+ lines
[
0
]
)
;
}, defaultLines
)
;
[/B]
Other
------------------------
Javadoc