This resource is out of date and only works on Minecraft 1.8 servers
Sign GUI allows developers to easily open and retrieve text from a Sign GUI window. Event handling is done in exactly the same way every other spigot event is handled making it intuitive to use for any spigot developer!
This plugin does nothing on it's own. It is a library intended to be used by developers to incorporate sign gui editors into their plugins.
Only tested on Spigot v1.8
Requires: ProtocolLib
- Drop SignGUI.jar into your /plugins folder
- In your Java project, add SignGUI.jar to your build path
- In your plugin yml add "depend:[SignGUI]"
Code (Text):
String[] text = new String[]{ChatColor.BOLD + "Sign GUI Lib", player.getName(), "Enter some text:", ""};
SignGUI.openSignEditor(player, text);
SignGUI.openSignEditor(player, text);
When the player clicks 'Done' in the sign editor gui, a SignGUIUpdateEvent is fired. You can listen for this event just like you would listen for any other spigot event.
In your onEnable() method, register an event listener for the sign gui.
Code (Text):
public void onEnable()
{
getServer().getPluginManager().registerEvents(new OnSignGUIUpdateEvent(), this);
}
{
getServer().getPluginManager().registerEvents(new OnSignGUIUpdateEvent(), this);
}
Code (Text):
public class OnSignGUIUpdateEvent implements Listener
{
@EventHandler
public void signUpdate(SignGUIUpdateEvent event)
{
Player player = event.getPlayer();
for(String str : event.getSignText())
{
player.sendMessage(str);
}
}
}
{
@EventHandler
public void signUpdate(SignGUIUpdateEvent event)
{
Player player = event.getPlayer();
for(String str : event.getSignText())
{
player.sendMessage(str);
}
}
}
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft version listed: 1.8
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
SignGUI is a free Minecraft Java mod. Compatible with Minecraft 1.8. Downloaded 967 times (via Spigot). Download it and open it directly in the game.
![[IMG]](http://proxy.spigotmc.org/be4ad0e61e3ab884e5bea34399727e92fe28a56b?url=http%3A%2F%2Fimgur.com%2FYZq99Z5.png)
![[IMG]](http://proxy.spigotmc.org/3b93e3670184a9390516b7bd9ce508ed53a757b0?url=http%3A%2F%2Fi.imgur.com%2FPkxiGPR.png)