Sueta

GuiShopManager [BSP] - Adds new ways to open a shop

v1.1.2

Allows opening shop/menu GUIs or executing commands by clicking an inventory item.

·Plugin

GuiShopManager
GuiShopManager allows opening inventory shop/menu GUIs by clicking an item in the players inventory. It is a BossShopPro Addon.

Features

  • Open a BossShopPro GUI when clicking a specific item
  • Supports all kind of items that BossShopPro supports (including placeholders)
  • Set the location of the Items in the inventory of your players
  • Different optional settings
  • You can bind commands/playercommands to items too
  • Multiworld support


Settings
JoinDelay: When players join, GSM will wait the given time (in ticks) until the items are given
AllowPlaceItems: Allows to place the Items
AllowDropItems: Allows to drop the Items
AllowMoveItems: Allows to move the Items in the inventory
AcceptLeftClick: Executes action when player uses leftclick with item in hand
DropItemsOnDeath: If false, the player won't drop the Items on death
GetItemsOnRespawn: Gives the Items when the player respawns
ClearInvOnJoin: Clears the players inventory on join before the GSM items are added (Useful for Lobby servers)
ClearInvOnWorldChange: Clears the players inventory when he teleports into an other world (GSM Items restricted to other worlds will be cleared anyways)

Commands

  • /GSM reload - Reloads the Plugin
  • /GSM items - Lists all existing GSM Items
  • /GSM give <ItemName> [Player] - Spawns a GSM Item

Permissions

  • GUIShopManager.Reload
  • GUIShopManager.Items
  • GUIShopManager.Give

Example

or

How to add more actions?
An item is set up like following:

BossShopMenu:
    Look:
    - name:&6[o] &4&lBossShop &r&6Menu &6[o]
    - lore:&7Right Click to open the Menu!
    - type:BOOK
    - amount:1
    GiveOnJoin: true
    InventoryLocation: 1
    OpenShop: menu

In order to add commands or playercommands, simply add a new line:

#Example 1
    Command:
    - fly %player%
#Example 2
    PlayerCommand:
    - spawn

Every item can theoretically be bound to multiple actions at the same time.

How to restrict an item to a world?

BossShopMenu:
    Look:
    - name:&6[o] &4&lBossShop &r&6Menu &6[o]
    - lore:&7Right Click to open the Menu!
    - type:BOOK
    - amount:1
    GiveOnJoin: true
    InventoryLocation: 1
    OpenShop: menu
    World: world1:world2:world3

Simply add a new "World: <worlds>" line to your item.

Similar projects

Plugin →