LorinthsMounts
Hey everyone! This plugin provides a simple permissions based mount system!
Commands
- /mounts - brings up an inventory window with the mounts you have access to!
Permissions
To give a player access to a mount simply add... LMount.<name>! In the example file(below), you can see that IronSteed, is the name of the mount, so you can use LMount.IronSteed, to give players access to it
Mounts.yml
The plugin will generate an example mount as well as config settings. Everything you need to do, is in this file. They are all explained with comments in the file, and are easy to use! Make sure to copy paste the example and edit it for easiest setup!
They example file is as follows...
#Developer : Lorinthios Config: Notify: true #shows mount/dismount messages to players Cooldown: 20 #Cooldown, in seconds, between summons, set to 0 if you don't want a cooldown Mounts: 'IronSteed': #Use permission LMount.IronSteed DisplayName: '&5Iron Steed' #Display name on item and above mounts head, can take colors Item: 417 #Display item in menu Lore: #This can take color codes - '&6This mount is clad in iron armor' - '&7Speed : 150%' - '&8Jump : 120%' Speed: 150 #% of player speed Jump: 0.7 #Scales between 0 and 2, 0.7 is average Health: 1 #1hp = 1 hit dead Armor: 417 #0=none, 417=iron, 418=gold, 419=diamond Variant: 0 #Between 0-4 Color: 0 #Between 0-6 Style: 0 #Between 0-4
Sorry for the late reply, I've been doing other stuff.
I get this error when I try and use the plugin. http://pastebin.com/zZfsFsBx
I am pretty sure the config file is wrong but I don't know how to fix that myself.
Btw I just have the default generated config file (haven't touched anything).
@Si7VdeR
Glad i could save you a step haha
@TheVedel1
Ah strange... Wonder why its erroring out at that point
@lorinthios
It's an awesome concept, something I've been looking for, yet my username wasnt long, it was "bruger01"
I was going to make a plugin just like this myself but I guess this one will be fine.
I'll test it on my server this weekend.
@TheVedel1
Also, this error specifically is based on the inventories name, due to a player with a long display name opening the window. I didnt think about this error, and will patch a fix when i get home later!
Glad you like the plugin concept!
@TheVedel1
I'm uploading a new build now, that cleans up a lot of issues
"An internal error occured while attempting to perform this command".
org.bukkit.command.CommandException: Unhandled exception executing command 'mounts' in plugin LorinthsMounts v1.0 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) [spigot-1.8.7.jar:git-Spigot-f928e7a-994b2aa] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) [spigot-1.8.7.jar:git-Spigot-f928e7a-994b2aa] at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:642) [spigot-1.8.7.jar:git-Spigot-f928e7a-994b2aa] at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1135) [spigot-1.8.7.jar:git-Spigot-f928e7a-994b2aa] at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:970) [spigot-1.8.7.jar:git-Spigot-f928e7a-994b2aa] at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45) [spigot-1.8.7.jar:git-Spigot-f928e7a-994b2aa] at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1) [spigot-1.8.7.jar:git-Spigot-f928e7a-994b2aa] at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) [spigot-1.8.7.jar:git-Spigot-f928e7a-994b2aa] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_72] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_72] at net.minecraft.server.v1_8_R3.SystemUtils.a(SystemUtils.java:19) [spigot-1.8.7.jar:git-Spigot-f928e7a-994b2aa] at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:718) [spigot-1.8.7.jar:git-Spigot-f928e7a-994b2aa] at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:367) [spigot-1.8.7.jar:git-Spigot-f928e7a-994b2aa] at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:657) [spigot-1.8.7.jar:git-Spigot-f928e7a-994b2aa] at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:560) [spigot-1.8.7.jar:git-Spigot-f928e7a-994b2aa] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_72] Caused by: java.lang.IllegalArgumentException: Title cannot be longer than 32 characters at org.apache.commons.lang.Validate.isTrue(Validate.java:136) [spigot-1.8.7.jar:git-Spigot-f928e7a-994b2aa] at org.bukkit.craftbukkit.v1_8_R3.inventory.CraftInventoryCustom$MinecraftInventory.<init>(CraftInventoryCustom.java:59) [spigot-1.8.7.jar:git-Spigot-f928e7a-994b2aa] at org.bukkit.craftbukkit.v1_8_R3.inventory.CraftInventoryCustom.<init>(CraftInventoryCustom.java:32) [spigot-1.8.7.jar:git-Spigot-f928e7a-994b2aa] at org.bukkit.craftbukkit.v1_8_R3.CraftServer.createInventory(CraftServer.java:1526) [spigot-1.8.7.jar:git-Spigot-f928e7a-994b2aa] at me.lorinth.mounts.MountWindow.createWindow(MountWindow.java:30) [?:?] at me.lorinth.mounts.MountWindow.<init>(MountWindow.java:25) [?:?] at me.lorinth.mounts.LorinthsMountsMain.onCommand(LorinthsMountsMain.java:159) [?:?] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) [spigot-1.8.7.jar:git-Spigot-f928e7a-994b2aa] ... 15 more
Happy to test your plugin out, seems awesome!