DrugSeller
Project Information
Description
This plugin allows users to sell drugs to Drug Buyers! Users can right click the entity (configurable in the config) and sell their products! Prices and items are configurable in the config and you can include custom names for items! Messages are also configurable! The drug buyers won't move and can't take damage. When you change the drug buyer's name in the config and reload the plugin, the drug dealers' names will change in-game!
Hooks into ChestShop's command /iteminfo to display the dealer's price!
Permissions
drugseller.* - allows a user to use all commands
drugseller.create- allows a user to create a new drug seller entity
drugseller.remove- allows a user to remove drug dealers.
drugseller.help - allows a user to see the commands
drugseller.reload - allows a player to reload the config
drugseller.gui - Allows a player to use the /dealer gui command.
drugseller.set - Allows a player to use the /dealer set <EntityType> command
drugseller.entitylist - Allows a player to use the /dealer entitylist command.
Commands
/dealer help - The help menu
/dealer reload - Reloads the config
/dealer create <EntityType> (name) - Creates a new drug buyer where you are standing.
/dealer remove <name> - Removes the drug buyer the user clicks on or the entity that the name belongs to.
/dealer gui - Allows the player to view the trading gui without right clicking on an entity.
/dealer set <name> - Allows a player to teleport a dealer to the player's location.
/dealer entitylist - Allows a player to view all entity types.
Dependencies
You need Vault for this to work!
Additional Information
THIS IS COMPILED IN JAVA 8. Make sure your Java is up to date!
If there are any bugs you'd like to report, leave a comment and I will work on it asap. If you have a suggestion for me, leave a comment as well!
Hey!! /dealer create isn't working on 1.10! At least I can't figure it out. Please help!!!
29.09 20:01:01 [Server] ERROR Plugin DrugSeller v1.2 has failed to register events for class io.github.mac_genius.drugseller.Listeners because com/Acrobot/ChestShop/Events/ItemInfoEvent does not exist.
29.09 20:21:02 [Server] INFO ... 15 more 29.09 20:21:02 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) [CraftBukkit.jar:git-Bukkit-c1b529e] 29.09 20:21:02 [Server] INFO at io.github.mac_genius.drugseller.Commands.onCommand(Commands.java:60) [?:?] 29.09 20:21:02 [Server] INFO Caused by: java.lang.ArrayIndexOutOfBoundsException: 1 29.09 20:21:02 [Server] INFO at java.lang.Thread.run(Unknown Source) [?:1.8.0_101] 29.09 20:21:02 [Server] INFO at net.minecraft.server.v1_10_R1.MinecraftServer.run(MinecraftServer.java:547) [CraftBukkit.jar:git-Bukkit-c1b529e] 29.09 20:21:02 [Server] INFO at net.minecraft.server.v1_10_R1.MinecraftServer.C(MinecraftServer.java:643) [CraftBukkit.jar:git-Bukkit-c1b529e] 29.09 20:21:02 [Server] INFO at net.minecraft.server.v1_10_R1.DedicatedServer.D(DedicatedServer.java:361) [CraftBukkit.jar:git-Bukkit-c1b529e] 29.09 20:21:02 [Server] INFO at net.minecraft.server.v1_10_R1.MinecraftServer.D(MinecraftServer.java:688) [CraftBukkit.jar:git-Bukkit-c1b529e] 29.09 20:21:02 [Server] INFO at net.minecraft.server.v1_10_R1.SystemUtils.a(SourceFile:45) [CraftBukkit.jar:git-Bukkit-c1b529e] 29.09 20:21:02 [Server] INFO at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_101] 29.09 20:21:02 [Server] INFO at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_101] 29.09 20:21:02 [Server] INFO at net.minecraft.server.v1_10_R1.PlayerConnectionUtils$1.run(SourceFile:13) [CraftBukkit.jar:git-Bukkit-c1b529e] 29.09 20:21:02 [Server] INFO at net.minecraft.server.v1_10_R1.PacketPlayInChat.a(SourceFile:9) [CraftBukkit.jar:git-Bukkit-c1b529e] 29.09 20:21:02 [Server] INFO at net.minecraft.server.v1_10_R1.PacketPlayInChat.a(SourceFile:37) [CraftBukkit.jar:git-Bukkit-c1b529e] 29.09 20:21:02 [Server] INFO at net.minecraft.server.v1_10_R1.PlayerConnection.a(PlayerConnection.java:1159) [CraftBukkit.jar:git-Bukkit-c1b529e] 29.09 20:21:02 [Server] INFO at net.minecraft.server.v1_10_R1.PlayerConnection.handleCommand(PlayerConnection.java:1299) [CraftBukkit.jar:git-Bukkit-c1b529e] 29.09 20:21:02 [Server] INFO at org.bukkit.craftbukkit.v1_10_R1.CraftServer.dispatchCommand(CraftServer.java:626) [CraftBukkit.jar:git-Bukkit-c1b529e] 29.09 20:21:02 [Server] INFO at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:140) [CraftBukkit.jar:git-Bukkit-c1b529e] 29.09 20:21:02 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) [CraftBukkit.jar:git-Bukkit-c1b529e] 29.09 20:21:02 [Server] INFO org.bukkit.command.CommandException: Unhandled exception executing command 'dealer' in plugin DrugSeller v1.2 29.09 20:21:02 [Server] ERROR null 29.09 20:16:15 [Server] INFO ... 3 more 29.09 20:16:15 [Server] INFO at org.bukkit.craftbukkit.v1_10_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:53) 29.09 20:16:15 [Server] INFO at org.bukkit.craftbukkit.v1_10_R1.scheduler.CraftTask.run(CraftTask.java:53) 29.09 20:16:15 [Server] INFO at org.mcstats.Metrics$1.run(Metrics.java:223) 29.09 20:16:15 [Server] INFO at org.mcstats.Metrics.access$400(Metrics.java:57) 29.09 20:16:15 [Server] INFO at org.mcstats.Metrics.postPlugin(Metrics.java:335) 29.09 20:16:15 [Server] INFO Caused by: java.lang.NoSuchMethodError: org.bukkit.Server.getOnlinePlayers()[Lorg/bukkit/entity/Player; 29.09 20:16:15 [Server] INFO at java.lang.Thread.run(Unknown Source) 29.09 20:16:15 [Server] INFO at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 29.09 20:16:15 [Server] INFO at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) 29.09 20:16:15 [Server] INFO at org.bukkit.craftbukkit.v1_10_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:56) 29.09 20:16:15 [Server] WARN org.apache.commons.lang.UnhandledException: Plugin UltraTrader v1.1 generated an exception while executing task 1569