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.
@afcusto
Update to ServerHub v1.1
@KeybordPiano459: My server can't load the .jar file. It says:
Could not load 'plugins/ServerHub.jar' in folder 'plugins' org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: me/KeybordPiano459/ServerHub/ServerHub : Unsupported major.minor version 51.0 at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:184) at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305) at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:230) at org.bukkit.craftbukkit.v1_5_R3.CraftServer.loadPlugins(CraftServer.java:239) at org.bukkit.craftbukkit.v1_5_R3.CraftServer.reload(CraftServer.java:603) at org.bukkit.Bukkit.reload(Bukkit.java:275) at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:23) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:189) at org.bukkit.craftbukkit.v1_5_R3.CraftServer.dispatchCommand(CraftServer.java:523) at org.bukkit.craftbukkit.v1_5_R3.CraftServer.dispatchServerCommand(CraftServer.java:512) at net.minecraft.server.v1_5_R3.DedicatedServer.an(DedicatedServer.java:262) at net.minecraft.server.v1_5_R3.DedicatedServer.r(DedicatedServer.java:227) at net.minecraft.server.v1_5_R3.MinecraftServer.q(MinecraftServer.java:477) at net.minecraft.server.v1_5_R3.MinecraftServer.run(MinecraftServer.java:410) at net.minecraft.server.v1_5_R3.ThreadServerApplication.run(SourceFile:573) Caused by: java.lang.UnsupportedClassVersionError: me/KeybordPiano459/ServerHub/ServerHub : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) at java.lang.ClassLoader.defineClass(ClassLoader.java:615) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) at java.net.URLClassLoader.access$000(URLClassLoader.java:58) at java.net.URLClassLoader$1.run(URLClassLoader.java:197) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at org.bukkit.plugin.java.PluginClassLoader.findClass0(PluginClassLoader.java:80) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:53) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:249) at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:173) ... 14 more
Tnx!
@Mister_Equinox
That would actually be a great idea! Thanks for the suggestion :)
@iNoobsTroller
Your config is formatted incorrectly
@USM666
If you could post a bug report of how this happened, I'd be willing to go through this. Are you using the latest version of the plugin?
@xLiaMz
That will be implemented in a future version of the plugin
How do I leave a slot empty so I can have a space then all my stuff... then another space?
There is a glitch where players can take the items from the GUI. That proved to be problematic when players attempted to get infinite diamonds and gold ingots,etc.
@KeybordPiano459
Hey man can you make a tutorial on how to use it? For some odd reason, mine doesn't work. I have it on compass, but it just won't work. I tried an empty map too, doesn't work either.
EDIT: I added the serverhub.hub permission but nothing...also when i do /hub, i get the message : an internal error occurred while attempting to perform this command...
Hey I have another feature suggestion :D
The option to create our own permissions for certain slot numbers can only be clicked by people with the permission , for example: There is Hunger Games which is Donator only and only those in the Donator rank have the permission so only they can click the icon, those without the permission to click it get a custom configurable message that tells them what rank they need in order to play that game/click that icon :)
something like "serverhub.use.hungergames" , "serverhub.use.paintball" etc :D
Would really help!
My other possibility of this is to make it the same way certain permissions for groups but have it only show what that group has access too, for example: default group has access to 3 icons "games/worlds" and only those 3 icons show, the other spaces are blank, so then those in Donator group has access to the default icons plus the 2 icons Donator has so 5 icons show, then Staff have all icons etc
This would all be amazing if you could do this, I'm not a developer so I honestly do not know what is possible and what is not but I hope they both are :D
- sorry if I'm annoying you :P
@winter4w
Try any kit plugin that allows you to give players items when they login. http://dev.bukkit.org/search/?scope=projects&search=kit
@Mister_Equinox
Is there mabey a plugin that is more light wight that can do the same thing ?
@xLiaMz
Just continue on with the numbers that you had. The first row left off at 8, just keep going at 9 to add items to the next row.
@Mister_Equinox
Thanks for answering his question :)
@winter4w
The plugin does not automatically do this but if you use essentials you can make then spawn with it in the config, I have mine set to give them a kit with a rule book and the teleporter item :)
Is there a way you can make it so where people spawn with the item ?
Sorry you may have answered this before but if I put in: gui-rows: 2
what numbers would it be for that second row? when adding the slot-[number]:
Thanks for Reading.
@KeybordPiano459
:)
@Mister_Equinox
I actually haven't implemented it yet. I'll try putting it in the next update, although I'm not sure that you can change the color of the GUI name. Thanks for the idea though, I hadn't thought of that before :)
I LOVE this plugin!, fantastic job KeybordPiano459!
Is there any way to colour the gui-name: , name: and the lore: text?
I tried using & and it didn't work, do I have to use ยง instead?
@couper59937
@dudemanmax
Both of you need to read the description, there's something in the config.yml file that allows you to choose what item can open the hub.
Can you make it so you can use an item to bring up the menu?
So how do I change the hub? I want it to be a Eye of Ender
@bigdavisc
I haven't implemented metadata for blocks/items yet, that will be in a later version of the plugin though.