Filled Permission Shop

Discussion in 'Plugin Requests' started by PolarBearGalaxy, Jan 22, 2018.

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

    PolarBearGalaxy

    Plugin category: Economy

    Minecraft version: 1.8.8 - 1.12.2 (Mainly 1.8.8)

    Suggested name: Command Shop

    What I want: I need a plugin that makes it so when a player does /pshop, a gui will open. Inside that gui, players are able to buy 'items' that run a command by console. I want it so I can change the GUI icon for each item. When players hover over the item, it should show a custom set name, not permission and how much it costs. The money system should be hooked with essentials money.

    Ideas for commands: /pshop - opens the GUI.
    Everything else should be configurable in config.

    Ideas for permissions: No permissions needed at all!

    When I'd like it by: Sometime this week.

    *Note: I have already tried plugins like permission shop and command shop. They either do not work, or are not what I need.
     
  2. Offline

    timtower Administrator Administrator Moderator

  3. Offline

    PolarBearGalaxy

    @timtower I already tried ChestCommands. Doesn't work..
     
  4. Offline

    Machine Maker

    Why doesn't it work?
     
  5. Offline

    PolarBearGalaxy

    It works! I am sorry, I was thinking of a different plugin. Thanks for the help!
     
  6. Offline

    Machine Maker

    Mark the request as Filled if your request has been fulfilled.
     
  7. Offline

    PolarBearGalaxy

    @X1machinemaker1X Nevermind. ChestCommands doesn't work like I want it; I want it so people can only buy it once. ChestCommands doesn't have that in config or to start off with.
     
    Last edited: Jan 23, 2018
  8. Offline

    Machine Maker

    I believe you can set each item to require a permission to click and you can remove/give a permission by clicking on an item.
     
  9. Offline

    PolarBearGalaxy

    Yeah, but then it'll say 'You don't have this permission.' I do not want that.
     
  10. Offline

    Machine Maker

    What's the issue there? They use the item once, and then can't again.
     
  11. Offline

    PolarBearGalaxy

    @X1machinemaker1X Uhm... you can't change permissions for each item. You can only change permissions for the whole entire menu, not the each item.
     
  12. Offline

    Machine Maker

    No, I think you can. Look here.
     
  13. Offline

    PolarBearGalaxy

    Alright. It does not work. I found another problem, and I assume I will find more. It just doesn't work the way I want it.
     
  14. Offline

    Dimxotl

    I used minecraft's scoreboard system to make a one-time-buy system, If you would like to know how I did it, just ask me. I know that you probably want to stay away from these types of systems.
     
  15. Offline

    PolarBearGalaxy

    I want a chest-GUI, not a scoreboard. Thanks for the try, though.
     
  16. Offline

    DrBot

    You can use the serversigns plugin. It's not a GUI though. You can use it to place down signs, and set a cost to clicking on the signs. You can also set the signs so that once they're hit, they perform a console command such as "/pex..."

    It's much more customizable than you would think. You can even add if statements to the signs and use those to prevent people from buying them twice.
     
  17. Offline

    Tabuu_

    Take a look at my plugin here.
     
  18. Offline

    PolarBearGalaxy

    I want a gui. Thank you for trying.

    @Tabuu_ Not home right now, will test it in a few hours ;)
     
  19. Offline

    Dimxotl

    Not a scoreboard as in the sidebar, I mean /scoreboard.

    Just to make it clear, I said that I used the scoreboard to store data on the player so that they cannot buy something again. It's not a scoreboard on the side of the screen. It's a way to store data. You can keep the gui.
     
    Last edited: Jan 24, 2018
  20. Offline

    PolarBearGalaxy

    @Tabuu_ When I try to add a command, it says an internal error occurred while attempted to preform this command. Works by using config! Thank you so much!!!

    @Tabuu_ Also, how do you make more than one item? This is the config:
    --------------------------------------------------------------------------------------------
    # minimum inventory size: 18

    InventorySize: 18
    perks:
    '&c/fly':
    displayItem: FEATHER
    permission: essentials.fly
    price: 100
    PermissionsManager: PermissionsEx
     
    Last edited: Jan 24, 2018
  21. Offline

    Tabuu_

    You can add more by adding items to the 'pers' section.

    Like so:
    Code:
    # minimum inventory size: 18
    
    InventorySize: 18
    PermissionsManager:
    perks:
      "&c/fly":
        displayItem: FEATHER
        permission: essentials.fly
        price: 100
      "&c/fly":
        displayItem: FEATHER
        permission: essentials.fly
        price: 100
      "&c/fly":
        displayItem: FEATHER
        permission: essentials.fly
        price: 100
      "&c/fly":
        displayItem: FEATHER
        permission: essentials.fly
        price: 100
    Also could you provide me with the error you are gettings?
     
  22. Offline

    PolarBearGalaxy

    @Tabuu_
    Sorry it took me so long. Here's the error code (found in console):

    [09:57:17 ERROR]: null org.bukkit.command.CommandException: Unhandled exception executing command 'ps' in plugin PermissionShop v1.3 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) ~[spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52] at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641) ~[spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52] at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1162) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52] at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:997) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52] at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:45) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52] at net.minecraft.server.v1_8_R3.PacketPlayInChat.a(PacketPlayInChat.java:1) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52] at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52] 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_8_R3.SystemUtils.a(SourceFile:44) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52] at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52] at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52] at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52] at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_112] Caused by: java.lang.NoSuchMethodError: org.bukkit.inventory.PlayerInventory.getItemInMainHand()Lorg/bukkit/inventory/ItemStack; at nl.tabuu.permissionshop.Main.onCommand(Main.java:88) ~[?:?] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52] ... 15 more


    Note: When I change a perk's GUI item, it is still iron bars. Even though it's in the config, the gui still shows iron bars.
     
    Last edited: Feb 3, 2018
  23. Offline

    Tabuu_

    The error is caused by the fact that you are using 1.8

    As for the iron bars try to deop yourself (iron bars are displayed if you already have that permission and if you have OP you have all the permissions)
     
  24. Offline

    PolarBearGalaxy

    Can you make it workable for 1.8?
    Also, when I try to open the GUI when I am deop'ed, it says 'An internal error has occurred.' I have permissions though. If I do not have the permission '*', it won't let me open the gui.
     
  25. Offline

    Tabuu_

    Do you get a console error aswel? If so please let me know.
     
  26. Offline

    PolarBearGalaxy

    Yeah:
    [08:25:28 ERROR]: null org.bukkit.command.CommandException: Unhandled exception executing command 'ps' in plugin PermissionShop v1.3 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52] at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) ~[spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52] at org.bukkit.craftbukkit.v1_8_R3.CraftServer.dispatchCommand(CraftServer.java:641) ~[spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52] at net.minecraft.server.v1_8_R3.PlayerConnection.handleCommand(PlayerConnection.java:1162) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52] at net.minecraft.server.v1_8_R3.PlayerConnection.chat(PlayerConnection.java:1078) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52] at org.bukkit.craftbukkit.v1_8_R3.entity.CraftPlayer.chat(CraftPlayer.java:237) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52] at me.messageofdeath.commandnpc.Listeners.NPCListener.onClick(NPCListener.java:127) [CommandNPC%20(1).jar:?] at me.messageofdeath.commandnpc.Listeners.NPCListener.onRight(NPCListener.java:50) [CommandNPC%20(1).jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_112] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_112] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_112] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_112] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52] at net.citizensnpcs.EventListen.onPlayerInteractEntity(EventListen.java:385) [Citizens%20(1).jar:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_112] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_112] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_112] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_112] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52] at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:1315) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52] at net.minecraft.server.v1_8_R3.PacketPlayInUseEntity.a(SourceFile:52) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52] at net.minecraft.server.v1_8_R3.PacketPlayInUseEntity.a(SourceFile:11) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52] at net.minecraft.server.v1_8_R3.PlayerConnectionUtils$1.run(SourceFile:13) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52] 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_8_R3.SystemUtils.a(SourceFile:44) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52] at net.minecraft.server.v1_8_R3.MinecraftServer.B(MinecraftServer.java:715) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52] at net.minecraft.server.v1_8_R3.DedicatedServer.B(DedicatedServer.java:374) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52] at net.minecraft.server.v1_8_R3.MinecraftServer.A(MinecraftServer.java:654) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52] at net.minecraft.server.v1_8_R3.MinecraftServer.run(MinecraftServer.java:557) [spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_112] Caused by: java.lang.NullPointerException at org.bukkit.inventory.ItemStack.<init>(ItemStack.java:68) ~[spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52] at nl.tabuu.permissionshop.guis.ShopGUI.createItem(ShopGUI.java:85) ~[?:?] at nl.tabuu.permissionshop.guis.ShopGUI.setupGUI(ShopGUI.java:78) ~[?:?] at nl.tabuu.permissionshop.guis.ShopGUI.open(ShopGUI.java:51) ~[?:?] at nl.tabuu.permissionshop.Main.onCommand(Main.java:62) ~[?:?] at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[spigot-1.8.8.jar:git-Spigot-21fe707-e1ebe52] ... 36 more
     
Thread Status:
Not open for further replies.

Share This Page