Better Chest Commands! WARNING: MASSIVE PROJECT!

Discussion in 'Archived: Plugin Requests' started by andrew chi, May 22, 2014.

  1. Offline

    andrew chi

    Better Chest Commands

    This is meant to be a modification for Chest Commands by Floghost, an open source GUI system.

    Placeholders update

    Currently, the placeholders work only in commands. For example, the command for an item in a menu would be “tell:You have %money% dollars” I would like it so that when you hover over an item, the placeholders take action. For example, an item’s name is “&bBalance: &e%money%” This will save the player from exiting the menu to see information. I would also like this to be implemented in lores, so that an item lore can display data.

    Placeholders update part 2

    Add A TON of placeholders. This shouldn't be too hard :D
    If I need more placeholders, I can always ask right?

    1. Factions:
      1. Faction Power
      2. Faction Land
      3. Faction Balance
      4. Faction Members
      5. Faction Members Online
      6. Player’s role if a faction
      7. Faction ally members online
      8. Faction Power
      9. Personal Faction power
    2. General Server Info:
      1. Server time
      2. Online Players
      3. Maximum players
    3. Player info:
      1. Player balance
      2. Player health
      3. Player saturation
      4. Player Coords
      5. Player PEX Rank
    4. PVP info (I use Battletracker)
      1. Player Kills
      2. Player Deaths
      3. Player KDR
      4. Player Winstreak
    Now for the hard part :p
    Dynamic Items

    What is a dynamic Item? Right now, in the config, It looks something like this

    Item:
    NAME: ‘&eMy Command Item'
    COMMAND: 'spawn'
    ID: 261
    AMOUNT: 16
    LORE:
    - ‘Tp’s you to spawn!’
    POSITION-X: 6
    POSITION-Y: 3
    ENCHANTMENT: protection,9
    PERMISSION: Moo.I.am.a.cow

    This spawns in an item at 6,3, an item of a bow, with a name of ‘My command item’ and lore of ‘Tp you to spawn’ with the enchantment prot 9, and spawns 16 in. When clicked, it casts the command ‘/Spawn’ for the player. The player must have the permission ‘moo.i.am.a.cow’

    What I need is something far more advanced than this. Its quite self explanatory, so this is what I would like the config to look like.

    DynamicItem:
    NAME: ‘My Command Item'
    ISDYNAMIC: True
    POSITION-X: 6
    POSITION-Y: 3
    COMMANDS:
    1:
    PERMISSION1: I.am.a.level.1.cow
    HasPermissionID: 57
    NoPermissionID: 1
    HasPermissionEnchant: Power,1
    NoPermissionEnchant: Power,-1
    HasPermissionAmount: 1
    NoPermissionAmount: 1
    HasPermissionCommand: '<server>pex user %player% group set cow1, pex user %player% add -I.am.a.level.1.cow, <server>pex user %player% add I.am.a.level.2.cow'
    NoPermissionCommand: 'tell:You already purchased this rank!'
    COST: 100
    2:
    PERMISSION1: I.am.a.level.2.cow
    HasPermissionID: 57
    NoPermissionID: 1
    HasPermissionEnchant: Power,2
    NoPermissionEnchant: Power,-2
    HasPermissionAmount: 2
    NoPermissionAmount: 2
    HasPermissionCommand: '<server>pex user %player% group set cow2, <server>pex user %player% add -I.am.a.level.2.cow, <server>pex user %player% add I.am.a.level.3.cow'
    NoPermissionCommand: 'tell:You already purchased this rank!'
    COST: 500
    3:
    So on
    4:
    and on
    5:
    and on
    6:
    This needs to support up to
    7:
    around 30 ish
    8:
    as this will help me sell ranks
    9:
    and let people "equip ranks"
    10:
    Thanks!
    This also needs work individually
    Example

    DynamicItem:
    NAME: ‘My Command Item'
    ISDYNAMIC: True
    POSITION-X: 6
    POSITION-Y: 3
    PERMISSION1: I.am.a.level.1.cow
    HasPermissionID: 57
    NoPermissionID: 1
    HasPermissionEnchant: Power,1
    NoPermissionEnchant: Power,-1
    HasPermissionAmount: 1
    NoPermissionAmount: 1
    HasPermissionCommand: '<server>pex user %player% group set cow1, pex user %player% add -I.am.a.level.1.cow, <server>pex user %player% add I.am.a.level.2.cow'
    NoPermissionCommand: 'tell:You already purchased this rank!'
    COST: 100

    Finally, If a player has, or doesn't have enough money for COST, make it display NoPermissionAmount, Chest commands sends a different message when you dont have enough money, there is no need to change that.

    Best Regards

    EDIT: For some reason, its not displaying the configs correctly, here is the google doc :D
    - Andrew
     
  2. Offline

    mine-care

    I'm sorry but I don't think a lot of people would do this for free.. Sorry :-(
     
  3. Offline

    andrew chi

  4. Offline

    Alster551

    You weren't joking about it being a massive project were you...
     
  5. Offline

    Me4502

    CraftBook's CommandItems can do a lot of what you want here. You could request the other parts as feature requests.
     
  6. Offline

    LordFox

    hire somone, no one here i think will help on such a large scale, unless paid
     

Share This Page