ServerHub
By: KeybordPiano459
ServerHub provides a quick way for new players to figure out what to do on your server. You can add server events to the list, and users could be able to warp to them, based on what you define in the config.
Commands
Currently, the only command is /hub. When the player performs this command, a GUI will pop up, similar to the one below. The GUI will have certain options on places to go around the server, which is all defined in the config, also explained below.
Configuration
You can view an example config file here.
Here are the things that you need to edit in your config file:
gui-rows: [# of rows] gui-name: [name] click-item-id: [item-id]
How to add a new item to your GUI (things in brackets are what you need to add):
items: slot-[number]: item-id: [id that will be clicked on] name: [name of item when hovered over] lore: line-[line number (starts with 0)]: [text you want on that line] line-[line number]: [text you want on the next line] command: [command to be executed by player when item is clicked]
Information
ServerHub is a plugin that was originally made for a server that I appreciate, Minederp. I developed this plugin on my own, and it came out as a very lightweight plugin that can be very beneficial to your server depending on how you use it. At Minederp, we use it so that new players are able to learn their way around the server.
Installing the plugin itself is easy. Just drag the .jar file that you downloaded into your server's plugins folder. Once it's installed, you can start up the server, and use all of the features as you would with any other plugin.
Help! Got An Error Message And ServerHub Won't Work :( 21.03 22:07:09 [Server] INFO at me.KeybordPiano459.ServerHub.ServerHub.onEnable(ServerHub.java:23) [?:?] 21.03 22:07:09 [Server] INFO at me.KeybordPiano459.ServerHub.ServerHub.getIconMenu(ServerHub.java:62) [?:?] 21.03 22:07:09 [Server] INFO at me.KeybordPiano459.ServerHub.IconMenu.setOption(IconMenu.java:35) [?:?] 21.03 22:07:09 [Server] INFO at me.KeybordPiano459.ServerHub.IconMenu.setItemNameAndLore(IconMenu.java:130) [?:?] 21.03 22:07:09 [Server] INFO java.lang.NullPointerException 21.03 22:07:09 [Server] ERROR Error occurred while enabling ServerHub v1.1 (Is it up to date?)
@Epickevin7718
The permission is serverhub.hub
What is the permission node for /hub? My users dont have permissions for it and its not on this page
@DerChabalo
item id 71 = empty
Please implement that I can do empty Spaces. If I let the name chapter empty, the plugin doesn't work and an error comes out.
But very nice and helpful plugin!
Update please?
I'm kinda mad i got it all working did /hub and it didnt work .-.
@MGPLAYS
What do you mean 'Make a command'? Do you mean add a command to an item?
@MattIPv4
Just remove the lines of code from the item slot which you want blank.
@TheOcelot4000
Yes, this does.
@Dougyfreshsurf
Yes all plugins work with bungee. BungeeCord is just a proxy which takes the player to a lobby server running spigot.
@bloodbath529
gui-rows: [# of rows] gui-name: [name] click-item-id: [item-id]
Change the number of rows here. Then in the item slot group of code the slot numbers are as follows:
1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 10-11-12-13-14-15-16-17-18 19-20-21-22-23-24-25-26-27
etc.
Is there away to make warps on the second row, I can't seem to find anything about adding warps on the second row.
Does it work with Bungee?
TheOcelot4000 yeah ive downloaded it and im using it it works for 1.7.2
Dose this work for 1.7.2?
!!URGENT!!
How Would I Do A Blank Space?
I want to have Server Info Warps On 1 Line.. Creative Servers On Another.. Survival On Another... PVP On Another...
Is There A Way?
Thanks, Matt!
HOW DO YOU MAKE COMMAND IT WONT LET ME AND I DONT SEE IT IN config FILE!!!
sorted it tnx
@MCpwats
thats a perms issue.....
Hello,
Any suggestions how to stop 'you are not allowed to use COMPASS' message even though everything works ?
Would just like to stop the message posting.
Thanks pwats
@epic_ninj4
Exact same thing is happening to me
im getting this error(and yes i do have the new one): 11.01 09:44:34 [Server] INFO at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:424) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2978jnks] 11.01 09:44:34 [Server] INFO at net.minecraft.server.v1_7_R1.DedicatedServer.init(DedicatedServer.java:175) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2978jnks] 11.01 09:44:34 [Server] INFO at net.minecraft.server.v1_7_R1.MinecraftServer.a(MinecraftServer.java:275) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2978jnks] 11.01 09:44:34 [Server] INFO at net.minecraft.server.v1_7_R1.MinecraftServer.g(MinecraftServer.java:319) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2978jnks] 11.01 09:44:34 [Server] INFO at net.minecraft.server.v1_7_R1.MinecraftServer.m(MinecraftServer.java:342) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2978jnks] 11.01 09:44:34 [Server] INFO at org.bukkit.craftbukkit.v1_7_R1.CraftServer.enablePlugins(CraftServer.java:280) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2978jnks] 11.01 09:44:34 [Server] INFO at org.bukkit.craftbukkit.v1_7_R1.CraftServer.loadPlugin(CraftServer.java:298) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2978jnks] 11.01 09:44:34 [Server] INFO at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:384) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2978jnks] 11.01 09:44:34 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:350) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2978jnks] 11.01 09:44:34 [Server] INFO at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:250) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-3-g530fcb7-b2978jnks] 11.01 09:44:34 [Server] INFO at me.KeybordPiano459.ServerHub.ServerHub.onEnable(ServerHub.java:23) [?:?] 11.01 09:44:34 [Server] INFO at me.KeybordPiano459.ServerHub.ServerHub.getIconMenu(ServerHub.java:59) [?:?] 11.01 09:44:34 [Server] INFO java.lang.NullPointerException 11.01 09:44:34 [Server] ERROR Error occurred while enabling ServerHub v1.1 (Is it up to date?)
@Wesley23
You can actually just copy paste one of the forms and rename the slot number to 6 (and so on...).