Help Find "Right-Click Book" for Server Hub

Discussion in 'Plugin Development' started by DopeElite, Jun 29, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    DopeElite

    I need help finding a plugin or just coding help for my server hub. Go to this server s1.mcinfected.net, then type /hub and right click book. That is what I am looking for. I have a hub myself and want to do this so can anyone help me? Thanks.
     
  2. Offline

    caseif

    Can you please just describe exactly what you want to accomplish? I honestly don't want to start up Minecraft just to see a small feature on some random server.
     
  3. Offline

    DopeElite

    Ok, I am looking for a thing to right click and it will open up a GUI Menu (Chest Looking Style, but with one Line) and you can have Lores, Custom Item name, and block
     
  4. Offline

    LaxWasHere

    Go to the forums where you downloaded the software that allows you to have the hub server, go to resources tab. There is one.
     
  5. Offline

    DopeElite

    What software?

    http://imgur.com/pQDsaSS <--- Here is photo of the Item.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 2, 2016
  6. Offline

    caseif

    That's actually really easy to accomplish. Listen to the appropriate event, check the item, create a custom inventory, and force the player to open it.
     
  7. Offline

    skipperguy12

    I am making something like this for my server, I don't have a great Bungee understanding, but after a bit of searching, but here's a thread which LaxWasHere explained how to do it:
    http://forums.bukkit.org/threads/sending-a-player-to-a-different-server-using-bungeecord.153210/

    Here is a really easy way to make the GUI appear:
    https://forums.bukkit.org/threads/icon-menu.108342/

    So here's what you'll have to do:
    1. Create an IconMenu instance for your servers menu
    2. Create a method that will teleport the player to the target server (with the code provided in that thread)
    3. In the IconMenu's OptionClickEvent listener, call the method that will proxy the player to the server
    I haven't tested any of this yet, so sorry for not giving code, that's just what I plan to do.

    Edit: Also, none of what I said above will work unless you actually open the GUI for the player! Use iconmenu.open(player) :p

    Also, use an Enchanted book, if you don't it will look weird because a real book inventory will appear for a split second before it switches to your GUI, this took me a while to figure out. Thanks molenzwiebel for helping me figure that out :)
     
    DopeElite likes this.
  8. Offline

    DopeElite

    Hey man add me on skype. Maybe we could do this together, i got some stuff started. so add me: dopeelite
     
Thread Status:
Not open for further replies.

Share This Page