MCmarket

Discussion in 'Plugin Requests' started by UnknownBrueck, Dec 17, 2016.

Thread Status:
Not open for further replies.
  1. Offline

    UnknownBrueck

    Plugin category: idk

    Minecraft version: 1.10+

    Suggested name: MCmarket

    What I want: a marketing plugin for players. For example when a player does "/market" it pulls up a gui that has all items players want to sell. To put an item in the market you type "/market add (amount) (price)" and it takes whatever is in your hand and puts it in the gui. In the desc of the item in the gui it will show the price and that's it. If a player wants to buy it they click it. If they do not have enough money then it will close the gui and pop up a message in red text saying "you cannot afford this item". When they type "/market help" then it will show all commands that they need to type.

    (also if you can do this could you have it so players get a mail with essentials saying "player bought your item on the market" when a player buys their item)

    Ideas for commands: "/market" , "/market add (amount) (price)" , "/market help"

    Ideas for permissions: (all players can do "/market) , "market.add" , "market.help"

    When I'd like it by: Anytime

    NOTE: Please no aliases like "/m" or "/ma" please.

    bump

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Dec 18, 2016
  2. Offline

    Ganga

    thats a really nice idea. I might think about developing it. Anyone wanna join?
     
  3. Offline

    Wispyy

    Have you tried anything similar to AuctionHouse (/ah I believe)
     
  4. Offline

    KingOfTheEast01

    That's what I was thinking. This is extremely similar and ah even has more options and is explained more in the GUI.
     
  5. Offline

    Ganga

    Anyways Im almost finished ^^

    Now. One Day later I already got some nice featres and costumeable configs.
    I also included a whole money system.
    The only feature thats left to be included is the selling of an article

    EDIT: Almost done. only the last few bugfixes and fancy stuff.
     
    Last edited: Dec 21, 2016
  6. Offline

    UnknownBrueck

    okay cool!
     
  7. Offline

    Jncwhite01

    Are you still working on this, as I would be much slower at getting it done but this seems like a nice project to take up when i get some free time, as long as of course you are willing to update regurarly and add new features
     
    Last edited by a moderator: Dec 31, 2016
  8. Offline

    Ganga

    im finished. The problem is Im currently not at my personal computer where my project files are located. Ill post the finished project as soon as Im back home.
     
  9. Offline

    UnknownBrueck

    okay cool!
     
  10. Offline

    Jncwhite01

    okay guess i wont be doing it.... got a bit stuck tbh aha, mind if i take a peek at the code, not to copy just to read through how you done it?
     
  11. Offline

    Ganga

    @Jncwhite01 Yes sure. Ill message you as soon as Im back home. [sheep]
     
  12. Offline

    SoyerTek

    I really liked the idea so i arranged something. hope it works as you want it, otherwise tell me.
    It needs vault. The permissions are "market.add" and "market.use", in the config you can set the size of the market and it's name.
    The download is on dropbox.
     
    Last edited: Jan 8, 2017
  13. Offline

    UnknownBrueck

    This is awesome! I would add some things though please

    1. A message when you buy an item "&aYou have bought {item} for {money}

    2. (if possible) to right click your item to get it back (if you didnt mean to put it in)(and only your item)

    3. The market size to be as big as a double chest

    4. when you run the command "/market add {price}" I would like "/market add {price} {amount}" incase you have a
    stack of items.

    Thanks!
     
  14. Offline

    SoyerTek

    Done.
    Added the message.
    Added the "get it back" feature.
    Edited the command.
    The market size is already adjustable in the config by increasing the number of Rows(Max 6 the doublechest size).
    Download on dropbox
     
  15. Offline

    UnknownBrueck

    This is an amazing plugin! Thanks for this. There are some last things I would add though

    1. When you type "/market add" alone it says "use /market add [price]". Could you make it "use /market add [amount] [price]"

    2. the items Only you put in the market, could you make it so in the description it says "(right or left click to take back)".

    3. Config doesn't work. Please fix it. (it doesn't save the changes).


    That's it! Thanks for the help!
     
  16. Offline

    SoyerTek

    Hi sorry but at the moment i can't really keep up with the work so i've quickly edited the message, but for the rest i can't help. download
     
  17. Offline

    UnknownBrueck

    Thanks for the work! That's all I needed!
     
  18. Offline

    YoloSanta

  19. Offline

    tooki

    i'm in 1.10.2 , still doesn't work
    logs :
    Code:
    [10:45:41] [Server thread/INFO]: T0oki issued server command: /market
    [10:45:41] [Server thread/ERROR]: null
    org.bukkit.command.CommandException: Unhandled exception executing command 'market' in plugin Market v1.0
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[craftbukkit-1.10.2-R0.1.jar:git-Bukkit-51263e9]
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:140) ~[craftbukkit-1.10.2-R0.1.jar:git-Bukkit-51263e9]
    at org.bukkit.craftbukkit.v1_10_R1.CraftServer.dispatchCommand(CraftServer.java:626) ~[craftbukkit-1.10.2-R0.1.jar:git-Bukkit-51263e9]
    at net.minecraft.server.v1_10_R1.PlayerConnection.handleCommand(PlayerConnection.java:1299) [craftbukkit-1.10.2-R0.1.jar:git-Bukkit-51263e9]
    at net.minecraft.server.v1_10_R1.PlayerConnection.a(PlayerConnection.java:1159) [craftbukkit-1.10.2-R0.1.jar:git-Bukkit-51263e9]
    at net.minecraft.server.v1_10_R1.PacketPlayInChat.a(SourceFile:37) [craftbukkit-1.10.2-R0.1.jar:git-Bukkit-51263e9]
    at net.minecraft.server.v1_10_R1.PacketPlayInChat.a(SourceFile:9) [craftbukkit-1.10.2-R0.1.jar:git-Bukkit-51263e9]
    at net.minecraft.server.v1_10_R1.PlayerConnectionUtils$1.run(SourceFile:13) [craftbukkit-1.10.2-R0.1.jar:git-Bukkit-51263e9]
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_112]
    at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_112]
    at net.minecraft.server.v1_10_R1.SystemUtils.a(SourceFile:45) [craftbukkit-1.10.2-R0.1.jar:git-Bukkit-51263e9]
    at net.minecraft.server.v1_10_R1.MinecraftServer.D(MinecraftServer.java:688) [craftbukkit-1.10.2-R0.1.jar:git-Bukkit-51263e9]
    at net.minecraft.server.v1_10_R1.DedicatedServer.D(DedicatedServer.java:361) [craftbukkit-1.10.2-R0.1.jar:git-Bukkit-51263e9]
    at net.minecraft.server.v1_10_R1.MinecraftServer.C(MinecraftServer.java:643) [craftbukkit-1.10.2-R0.1.jar:git-Bukkit-51263e9]
    at net.minecraft.server.v1_10_R1.MinecraftServer.run(MinecraftServer.java:547) [craftbukkit-1.10.2-R0.1.jar:git-Bukkit-51263e9]
    at java.lang.Thread.run(Thread.java:745) [?:1.8.0_112]
    Caused by: java.lang.NullPointerException
    at org.bukkit.craftbukkit.v1_10_R1.entity.CraftHumanEntity.openInventory(CraftHumanEntity.java:183) ~[craftbukkit-1.10.2-R0.1.jar:git-Bukkit-51263e9]
    at me.SoyerTek.Market.onCommand(Market.java:108) ~[?:?]
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[craftbukkit-1.10.2-R0.1.jar:git-Bukkit-51263e9]
    ... 15 more
    [10:45:42] [Server thread/WARN]: [AfkManager] Task #42 for AfkManager v2.0.2 generated an exception
    java.lang.NoSuchMethodError: org.bukkit.Server.getOnlinePlayers()[Lorg/bukkit/entity/Player;
    at com.douglas_srs.AfkManager.AfkManager$1.run(AfkManager.java:131) ~[?:?]
    at org.bukkit.craftbukkit.v1_10_R1.scheduler.CraftTask.run(CraftTask.java:53) ~[craftbukkit-1.10.2-R0.1.jar:git-Bukkit-51263e9]
    at org.bukkit.craftbukkit.v1_10_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:352) [craftbukkit-1.10.2-R0.1.jar:git-Bukkit-51263e9]
    at net.minecraft.server.v1_10_R1.MinecraftServer.D(MinecraftServer.java:682) [craftbukkit-1.10.2-R0.1.jar:git-Bukkit-51263e9]
    at net.minecraft.server.v1_10_R1.DedicatedServer.D(DedicatedServer.java:361) [craftbukkit-1.10.2-R0.1.jar:git-Bukkit-51263e9]
    at net.minecraft.server.v1_10_R1.MinecraftServer.C(MinecraftServer.java:643) [craftbukkit-1.10.2-R0.1.jar:git-Bukkit-51263e9]
    at net.minecraft.server.v1_10_R1.MinecraftServer.run(MinecraftServer.java:547) [craftbukkit-1.10.2-R0.1.jar:git-Bukkit-51263e9]
    at java.lang.Thread.run(Thread.java:745) [?:1.8.0_112]
    [10:45:43] [Server thread/WARN]: [AfkManager] Task #42 for AfkManager v2.0.2 generated an exception
    java.lang.NoSuchMethodError: org.bukkit.Server.getOnlinePlayers()[Lorg/bukkit/entity/Player;
    at com.douglas_srs.AfkManager.AfkManager$1.run(AfkManager.java:131) ~[?:?]
    at org.bukkit.craftbukkit.v1_10_R1.scheduler.CraftTask.run(CraftTask.java:53) ~[craftbukkit-1.10.2-R0.1.jar:git-Bukkit-51263e9]
    at org.bukkit.craftbukkit.v1_10_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:352) [craftbukkit-1.10.2-R0.1.jar:git-Bukkit-51263e9]
    at net.minecraft.server.v1_10_R1.MinecraftServer.D(MinecraftServer.java:682) [craftbukkit-1.10.2-R0.1.jar:git-Bukkit-51263e9]
    at net.minecraft.server.v1_10_R1.DedicatedServer.D(DedicatedServer.java:361) [craftbukkit-1.10.2-R0.1.jar:git-Bukkit-51263e9]
    at net.minecraft.server.v1_10_R1.MinecraftServer.C(MinecraftServer.java:643) [craftbukkit-1.10.2-R0.1.jar:git-Bukkit-51263e9]
    at net.minecraft.server.v1_10_R1.MinecraftServer.run(MinecraftServer.java:547) [craftbukkit-1.10.2-R0.1.jar:git-Bukkit-51263e9]
    at java.lang.Thread.run(Thread.java:745) [?:1.8.0_112]
    [10:45:44] [Server thread/WARN]: [AfkManager] Task #42 for AfkManager v2.0.2 generated an exception
    java.lang.NoSuchMethodError: org.bukkit.Server.getOnlinePlayers()[Lorg/bukkit/entity/Player;
    at com.douglas_srs.AfkManager.AfkManager$1.run(AfkManager.java:131) ~[?:?]
    at org.bukkit.craftbukkit.v1_10_R1.scheduler.CraftTask.run(CraftTask.java:53) ~[craftbukkit-1.10.2-R0.1.jar:git-Bukkit-51263e9]
    at org.bukkit.craftbukkit.v1_10_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:352) [craftbukkit-1.10.2-R0.1.jar:git-Bukkit-51263e9]
    at net.minecraft.server.v1_10_R1.MinecraftServer.D(MinecraftServer.java:682) [craftbukkit-1.10.2-R0.1.jar:git-Bukkit-51263e9]
    at net.minecraft.server.v1_10_R1.DedicatedServer.D(DedicatedServer.java:361) [craftbukkit-1.10.2-R0.1.jar:git-Bukkit-51263e9]
    at net.minecraft.server.v1_10_R1.MinecraftServer.C(MinecraftServer.java:643) [craftbukkit-1.10.2-R0.1.jar:git-Bukkit-51263e9]
    at net.minecraft.server.v1_10_R1.MinecraftServer.run(MinecraftServer.java:547) [craftbukkit-1.10.2-R0.1.jar:git-Bukkit-51263e9]
    at java.lang.Thread.run(Thread.java:745) [?:1.8.0_112]
    [10:45:45] [Server thread/WARN]: [AfkManager] Task #42 for AfkManager v2.0.2 generated an exception
    java.lang.NoSuchMethodError: org.bukkit.Server.getOnlinePlayers()[Lorg/bukkit/entity/Player;
    at com.douglas_srs.AfkManager.AfkManager$1.run(AfkManager.java:131) ~[?:?]
    at org.bukkit.craftbukkit.v1_10_R1.scheduler.CraftTask.run(CraftTask.java:53) ~[craftbukkit-1.10.2-R0.1.jar:git-Bukkit-51263e9]
    at org.bukkit.craftbukkit.v1_10_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:352) [craftbukkit-1.10.2-R0.1.jar:git-Bukkit-51263e9]
    at net.minecraft.server.v1_10_R1.MinecraftServer.D(MinecraftServer.java:682) [craftbukkit-1.10.2-R0.1.jar:git-Bukkit-51263e9]
    at net.minecraft.server.v1_10_R1.DedicatedServer.D(DedicatedServer.java:361) [craftbukkit-1.10.2-R0.1.jar:git-Bukkit-51263e9]
    at net.minecraft.server.v1_10_R1.MinecraftServer.C(MinecraftServer.java:643) [craftbukkit-1.10.2-R0.1.jar:git-Bukkit-51263e9]
    at net.minecraft.server.v1_10_R1.MinecraftServer.run(MinecraftServer.java:547) [craftbukkit-1.10.2-R0.1.jar:git-Bukkit-51263e9]
    at java.lang.Thread.run(Thread.java:745) [?:1.8.0_112]
     
  20. Offline

    UnknownBrueck

    Im using 1.11
     
  21. Offline

    UnknownBrueck

    Hey the permissions don't work. Sorry I just checked if normal players could use the plugin. Could you please add permissions like "market.add" , "market.help" , "market.use". Thanks!
     
  22. Offline

    mehboss

    @SoyerTek
    If you don't mind, can I see the code.. I want to learn for-loops better and I have been wondering about how I would make it so players can add unlimited gui items from a config using for-loops... I know you made it do it using a command but it would be similar.. thanks!
     
  23. Offline

    Vesnu

    ChestCommands should be able to do this i believe.
     
  24. If you post the code, I can try to add the features he wanted...
     
Thread Status:
Not open for further replies.

Share This Page