About:
If you have ever seen large networks that have a sub-hub minigames lobby that has signs that show [OPEN] [INGAME] and so on...
With this this is possible.
Code Example
Code (java):package me.shawshark.test;
import me.shawshark.lilygamesigns.LilyGameSigns;
import org.bukkit.Bukkit;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerJoinEvent;
import org.bukkit.event.player.PlayerQuitEvent;
import org.bukkit.plugin.java.JavaPlugin;
public class main extends JavaPlugin implements Listener {
public Boolean gamealive = true;
public void onEnable() {
Bukkit.getPluginManager().registerEvents(this, this);
}
public void onDisable() {
restartmethod();
}
public LilyGameSigns getLilyGameSigns() {
LilyGameSigns api = (LilyGameSigns) Bukkit.getServer().getPluginManager().getPlugin("LilyGameSigns");
return api;
}
@EventHandler
public void playerjoinevent(PlayerJoinEvent e) {
int onlineplayers = getServer().getOnlinePlayers().length;
if(getServer().getMaxPlayers() == onlineplayers) {
getLilyGameSigns().api.send("full");
}
if(!gamealive) {
getLilyGameSigns().api.send("open");
/**
* Game isn't on, So send a request of [open]
* with online players etc...
*/
} else {
getLilyGameSigns().api.send("ingame");
/**
* Game is in game send [InGame] status.
*/
}
}
@EventHandler
public void onQuit(PlayerQuitEvent e) {
if(!gamealive) {
getLilyGameSigns().api.send("open");
} else {
getLilyGameSigns().api.send("ingame");
}
}
public void restartmethod() {
getLilyGameSigns().api.send("restarting");
}
}
How to use:
You will need to put this plugin into all your minigame servers and the server that you won't the lobby signs to be on mostly that would be the server hub.
In your hub or where ever you want the signs to be placed type
/lilygamesigns place and place the sign. On the second line put the server username from it's lilypad-connect for example SW-001
For now the sign will only say that until it is updated from yourend using the api.
When finished placing signs type /lilygamesigns place to stop the saving on placement.
Permissions:- lilygamesigns.admin - Gives you access to all commands.
- lilygamesigns.place - Allows to you place a game sign
Credit: Vislo (For some code from bettersigns.)
https://github.com/shawshark/LilyGameSigns
-
Welcome to LilyPad. Download the project, explore the forums, and create your own LilyPad network.
If you use the software and enjoy it or have a question, or would like to contribute to the future of the software directly or through resources, please sign up and join our little community.

LilyGameSigns
This is an API for developers, the plugin itself won't do anything except for placing a sign
Recent Updates
- LilyGameSigns Released. Jan 14, 2014