Mob Shop
MobShop
Want players to be able to buy mobs, but you don't want to make a shop? This plugin is for you! With this plugin you can have your players buy any mob in the game! All they have to do is type /mobshop or /ms and it pops up an Inventory GUI where they can buy all the mobs! You don't want your player buying bosses? You can even define in the configuration to make it so they can't buy bosses!
If you want to see all the pages in the shop, go to the MobShop Inventories Page.
Requirements
This plugin requires the latest version of Vault installed. You can download vault here.
Commands
This plugin only has 1 command: /mobshop. The permission is mobshop.use. This will open up an inventory GUI with all the mobs in it. You also do /mobshop reload to reload the plugin (permission mobshop.reload).
Configuration
All the mob costs are configurable. Opped players or players with permission mobshop.reload have an eye of the ender icon that when clicked, will reload the config. You can also configure the currency symbol. For example, if you use euros, you could set the euro symbol to the front. Or if you have a symbol at the end of the price, you could set it at the end and nothing in the front.
Configuration
Need help with the configuration? Click Here!
Current Mobs
All the mobs are added in the game!
Servers
Minemega: minemega.no-ip.org
OblivionsMC Network: play.oblivionmc.info
If you are using this plugin, PM me your server IP and I will put it here.
Source Code
You can view the source code here.
@BrickBoy55
you could just have separate permission nodes for each mob
@Rosain
If I were to make it so you can disable certain mobs, then there would be holes in the GUI which would be sorta annoying; but disabling/enabling the eggs is very doable.
EDIT: Updated configuration page.
is there a way to configure which mobs to sell and which to not sell? your configuration bukkit page isn't working, also enabling and disabling the egg option would be nice if you feel so inclined :)
@fvqu
It works perfectly fine for me. Can you state your vault version?
@BrickBoy55
Tried the latest update, yet the issue still persists. Yes, I'm on a 1.8 server with Vault. Here's my error:
[23:05:32] [Server thread/ERROR]: Could not pass event InventoryClickEvent to MobShop v2.1 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:305) [spigot-1.8.jar:git-Spigot-b73910a-726656b] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) [spigot-1.8.jar:git-Spigot-b73910a-726656b] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot-1.8.jar:git-Spigot-b73910a-726656b] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot-1.8.jar:git-Spigot-b73910a-726656b] at net.minecraft.server.v1_8_R1.PlayerConnection.a(PlayerConnection.java:1588) [spigot-1.8.jar:git-Spigot-b73910a-726656b] at net.minecraft.server.v1_8_R1.PacketPlayInWindowClick.a(SourceFile:31) [spigot-1.8.jar:git-Spigot-b73910a-726656b] at net.minecraft.server.v1_8_R1.PacketPlayInWindowClick.a(SourceFile:9) [spigot-1.8.jar:git-Spigot-b73910a-726656b] at net.minecraft.server.v1_8_R1.PacketHandleTask.run(SourceFile:13) [spigot-1.8.jar:git-Spigot-b73910a-726656b] at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_40] at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_40] at net.minecraft.server.v1_8_R1.MinecraftServer.z(MinecraftServer.java:696) [spigot-1.8.jar:git-Spigot-b73910a-726656b] at net.minecraft.server.v1_8_R1.DedicatedServer.z(DedicatedServer.java:316) [spigot-1.8.jar:git-Spigot-b73910a-726656b] at net.minecraft.server.v1_8_R1.MinecraftServer.y(MinecraftServer.java:634) [spigot-1.8.jar:git-Spigot-b73910a-726656b] at net.minecraft.server.v1_8_R1.MinecraftServer.run(MinecraftServer.java:537) [spigot-1.8.jar:git-Spigot-b73910a-726656b] at java.lang.Thread.run(Unknown Source) [?:1.8.0_40] Caused by: java.lang.NoSuchMethodError: net.milkbowl.vault.economy.Economy.has(Lorg/bukkit/OfflinePlayer;D)Z at org.brick.mobshop.MobShop.buyIronGolem(MobShop.java:31) [?:?] at org.brick.mobshop.Main.onInventoryClick(Main.java:711) [?:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [?:1.8.0_40] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [?:1.8.0_40] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [?:1.8.0_40] at java.lang.reflect.Method.invoke(Unknown Source) [?:1.8.0_40] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301) [spigot-1.8.jar:git-Spigot-b73910a-726656b] ... 14 more
@fvqu
Is there an error in console that you can paste?
Also, what server version are you using?
EDIT: Did some testing on craftbukkit 1.8 and 1.8.3, spigot 1.8 and 1.8.3, and it's perfectly functional.
What could be causing this:
a) You don't have Vault installed.
b) You have a conflicting plugin.
c) You aren't using a 1.8 server.
The GUI was completely unresponsive during my experience testing this plugin. Using latest version.
@ThisUsernameIsMine
Well, it costs money to buy the mobs. So if you have filthy rich players that want to spawn in billions of mobs, well.... there is nothing I can do about that.
EDIT: I can add seperate permissions to buy each mob and each mob egg and group it into the default mobshop.use permission.
Does this give people unlimited mob-usage or a single time because i don't want people to spam mobs everywhere :D Other than that the plugin looks amazing! :)
Dis looks amazing! :D
@MC_Knuti
Thanks.
Woohoo Soooo awesomeeee