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.
12:06:39 AM CONSOLE: [INFO] xTAZZ3RZz issued server command: /hub 12:06:39 AM CONSOLE: [SEVERE] null 12:06:39 AM CONSOLE: exception executing command 'hub' in plugin ServerHub v1.0.2
Config.yml http://pastie.org/7991178
Same error as guy underneath
Whenever I type in /hub it says: Internal Server Error. Please help!
1.5.1 is compatible with 1.5.2 bukkit.
when is there going to be a 1.5.2 release? i dont want to sound impatient but this plugin looks very usefull and i dont want to downgrade to 1.5.1 :P
Agh sorry guys I've been busy.
@MinecraftKillStreak You skipped slots 1 and 3
@C0nsoleMC I don't remember :/
@ThomasGamerTag
Update to java 1.7
It wont work
I just get this 01:11:58 [SEVERE] 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.<init>(CraftServer.java:217) at net.minecraft.server.v1_5_R3.PlayerList.<init>(PlayerList.java:55) at net.minecraft.server.v1_5_R3.DedicatedPlayerList.<init>(SourceFile:11) at net.minecraft.server.v1_5_R3.DedicatedServer.init(DedicatedServer.java:106) at net.minecraft.server.v1_5_R3.MinecraftServer.run(MinecraftServer.java:382) 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) ... 9 more
Quick question: What font is the logo?
@KeybordPiano459
Sorry I wasn't trying to be rude. I just didn't know how to word it. http://pastebin.com/fCFDjsik
@MinecraftKillStreak
That's a little rude, but actually, you messed up making your config. Pastebin it or something and I bet I'll find some little screw up in it.
@KeybordPiano459
You must have messed something up making this because I get..
2013-05-11 13:26:05 [SEVERE] org.bukkit.command.CommandException: Unhandled exception executing command 'hub' in plugin ServerHub v1.0.1
2013-05-11 13:26:05 [SEVERE] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46)
2013-05-11 13:26:05 [SEVERE] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:189)
2013-05-11 13:26:05 [SEVERE] at org.bukkit.craftbukkit.v1_5_R3.CraftServer.dispatchCommand(CraftServer.java:523)
2013-05-11 13:26:05 [SEVERE] at org.bukkit.Bukkit.dispatchCommand(Bukkit.java:201)
2013-05-11 13:26:05 [SEVERE] at ch.njol.skript.Skript.dispatchCommand(Skript.java:751)
2013-05-11 13:26:05 [SEVERE] at ch.njol.skript.effects.EffCommand.execute(EffCommand.java:83)
2013-05-11 13:26:05 [SEVERE] at ch.njol.skript.lang.Effect.run(Effect.java:50)
2013-05-11 13:26:05 [SEVERE] at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:60)
2013-05-11 13:26:05 [SEVERE] at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:82)
2013-05-11 13:26:05 [SEVERE] at ch.njol.skript.lang.Trigger.execute(Trigger.java:48)
2013-05-11 13:26:05 [SEVERE] at ch.njol.skript.SkriptEventHandler.check(SkriptEventHandler.java:91)
2013-05-11 13:26:05 [SEVERE] at ch.njol.skript.SkriptEventHandler$1.execute(SkriptEventHandler.java:51)
2013-05-11 13:26:05 [SEVERE] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
2013-05-11 13:26:05 [SEVERE] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477)
2013-05-11 13:26:05 [SEVERE] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462)
2013-05-11 13:26:05 [SEVERE] at org.bukkit.craftbukkit.v1_5_R3.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:186)
2013-05-11 13:26:05 [SEVERE] at org.bukkit.craftbukkit.v1_5_R3.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:156)
2013-05-11 13:26:05 [SEVERE] at net.minecraft.server.v1_5_R3.PlayerConnection.a(PlayerConnection.java:611)
2013-05-11 13:26:06 [SEVERE] at net.minecraft.server.v1_5_R3.Packet15Place.handle(SourceFile:58)
2013-05-11 13:26:06 [SEVERE] at net.minecraft.server.v1_5_R3.NetworkManager.b(NetworkManager.java:292)
2013-05-11 13:26:06 [SEVERE] at net.minecraft.server.v1_5_R3.PlayerConnection.d(PlayerConnection.java:109)
2013-05-11 13:26:06 [SEVERE] at net.minecraft.server.v1_5_R3.ServerConnection.b(SourceFile:35)
2013-05-11 13:26:06 [SEVERE] at net.minecraft.server.v1_5_R3.DedicatedServerConnection.b(SourceFile:30)
2013-05-11 13:26:06 [SEVERE] at net.minecraft.server.v1_5_R3.MinecraftServer.r(MinecraftServer.java:581)
2013-05-11 13:26:06 [SEVERE] at net.minecraft.server.v1_5_R3.DedicatedServer.r(DedicatedServer.java:226)
2013-05-11 13:26:06 [SEVERE] at net.minecraft.server.v1_5_R3.MinecraftServer.q(MinecraftServer.java:477)
2013-05-11 13:26:06 [SEVERE] at net.minecraft.server.v1_5_R3.MinecraftServer.run(MinecraftServer.java:410)
2013-05-11 13:26:06 [SEVERE] at net.minecraft.server.v1_5_R3.ThreadServerApplication.run(SourceFile:573)
2013-05-11 13:26:06 [SEVERE] Caused by: java.lang.NullPointerException
2013-05-11 13:26:06 [SEVERE] at me.KeybordPiano459.ServerHub.CommandHub.onCommand(CommandHub.java:35)
2013-05-11 13:26:06 [SEVERE] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44)
2013-05-11 13:26:06 [SEVERE] ... 27 more
@MinecraftKillStreak
Try skript http://dev.bukkit.org/server-mods/skript/
@KeybordPiano459
What plugins allow this? I searched but I can't seem to find one.
@MinecraftKillStreak
Find a plugin that will run a command for you like this, there are tons. I'm not going to add it, as I don't think that feature relates too much to this plugin.
@KeybordPiano459
Is there a way in which I can set an item for the trigger. Ex. a compass in right clicked and it brings up the gui. I've seen this on other servers and would like to be able to do this also.
For bypassing permissions, you can op them, run the command, then deop them. :D
i fixed that still nothing :/ @keybordpiano459
@fearherbs1
Follow the format of the other slots- you misspelled slot :/
when i try to add another slot with:
Stot-5:
item-id: 90
name: Warps
lore:
line-0: Go to the warp hub
command: warp warps
and i get this when i try to use the command:
2013-05-01 17:21:18 [INFO] fearherbs1 issued server command: /hub
2013-05-01 17:21:18 [SEVERE] null
org.bukkit.command.CommandException Unhandled exception executing command 'hub' in plugin ServerHub v1.0.2
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46)
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:188)
at org.bukkit.craftbukkit.v1_5_R2.CraftServer.dispatchCommand(CraftServer.java:523)
at net.minecraft.server.v1_5_R2.PlayerConnection.handleCommand(PlayerConnection.java:966)
at net.minecraft.server.v1_5_R2.PlayerConnection.chat(PlayerConnection.java:884)
at net.minecraft.server.v1_5_R2.PlayerConnection.a(PlayerConnection.java:841)
at net.minecraft.server.v1_5_R2.Packet3Chat.handle(Packet3Chat.java:44)
at net.minecraft.server.v1_5_R2.NetworkManager.b(NetworkManager.java:292)
at net.minecraft.server.v1_5_R2.PlayerConnection.d(PlayerConnection.java:110)
at net.minecraft.server.v1_5_R2.ServerConnection.b(SourceFile:35)
at net.minecraft.server.v1_5_R2.DedicatedServerConnection.b(SourceFile:30)
at net.minecraft.server.v1_5_R2.MinecraftServer.r(MinecraftServer.java:578)
at net.minecraft.server.v1_5_R2.DedicatedServer.r(DedicatedServer.java:225)
at net.minecraft.server.v1_5_R2.MinecraftServer.q(MinecraftServer.java:474)
at net.minecraft.server.v1_5_R2.MinecraftServer.run(MinecraftServer.java:407)
at net.minecraft.server.v1_5_R2.ThreadServerApplication.run(SourceFile:573)
Caused by: java.lang.NullPointerException
at me.KeybordPiano459.ServerHub.ServerHub.getIconMenu(ServerHub.java:45)
at me.KeybordPiano459.ServerHub.CommandHub.onCommand(CommandHub.java:21)
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44)
... 15 more
plz help thanks :) @keybordpiano459
@dazzamclean
I don't have any recommendations, as I host the servers that I need on my server computer.