Solved Game signs.

Discussion in 'Spigot Plugin Development' started by Mystic_Mark_, Aug 13, 2018.

  1. I would like to make a lobby sign system for a minigame. But what is the best wat of getting things like Maxplayers, online players, gamestate and map. From another server in the bungeecord network.

    Should i use Mysql, Sockets or something else.
    #1 Mystic_Mark_, Aug 13, 2018
    Last edited: Aug 13, 2018
  2. Sign system for your plugin?
    In this case you should use SignChangeEvent, and PlayerInteractEvent.
    Code (Java):
    onSignChange(SignChangeEvent e) {
        if (e.getLine(0).equalsIgnoreCase([MySign])) {
            //set your things
            //put the sign to a map, for later use

    onPlayerInteract(PlayerInteractEvent e) {
        Action a = e.getAction();
        if (a == Action.RIGHT_CLICK_BLOCK || a == Action.LEFT_CLICK_BLOCK && e.getClickedBlock().getType() == Material.SIGN) {
            if (signMap.contains(e.getClickedBlock()) {
                //interact handle
    Other plugins? Ask the developer for this feature :D
  3. Sorry i forgot to say that i mean another game server on the network. 1 game = 1 server.
  4. So, you want the signs in the lobby server, getting information from the game servers?

    This is more like BungeeCord, and server-server communication.
    Ask there, idk how to do that :(
  5. That's what i mean. But its mainly spigot development. So i don't know where to post.
  6. If you use bungeecord, i suggest reading this, maybe this. PluginMessaging maybe can do that server-server communication what you want.
  7. This will not work because it needs at least 1 player online. Even if there are 0 players online i need to get the information.
  8. TheJavaHacker


    Then use Sockets and Redis/Jedis.
  9. MiniDigger


    • Useful Useful x 2