Sueta

WarpGUI

V1.6.1

A fancy warp GUI for prison servers utilizing EZRanksLite/EZRanksPro

·Plugin

This plugin requires EZRanksPro & therefore also Vault to run.
The gui can be opened by config-defined commands

Example of a gui:

Items lore/name:

A lot of this can be configured

players will execute /warp <rank> when they click an item.
this plugin uses permissions to check if they have a rank unlocked, namely the essentials warp permission (essentials.warps.<rank>), and therefore will look a bit wonky if you are op or have the permission "*" or essentials.warps.*, my apologies, this seemed like the best way to do it.

example of a config:

http://pastebin.com/MYjnXCVF

undefined: ## <- this item gets used if you have extra slots left, set the ID to 0 for an empty slot
  empty:
    id: 35
    sub: 14
    name: "&4Invalid rank"
    lore:
      - '&3This slot is'
      - '&3not in use.'

stuff:
  inv_name: '&6Prison Ranks'
  inv_size: 6
  rank_not_reached:
    - '&2You have not yet reached this rank'
    - '&2Get more money and use /rankup!'
  commands:
    - 'warp'
    - 'warps'
    - 'ranks'
    - 'rank'

slots:
  0:
    rank: "a"
    item:
      item_locked:
        id: 160
        sub: 14
      item_unlocked:
        glow: true
        id: 15
        sub: 0
      name: "&aA &7{CURRENT}"
      lore:
        - '&2cost: FREE'
        - '&2status: {STATUS}'
        - '&2complete: {PERCENTAGE}'
  1:
    rank: "b"
    item:
      item_locked:
        id: 160
        sub: 14
      item_unlocked:
        id: 15
        sub: 0
        glow: true
      name: "&aB &7{CURRENT}"
      lore:
        - '&7Cost: &6$75k'
        - '&7Status: {STATUS}'
        - '&7Percentage: {PERCENTAGE}'
  2:
    rank: "c"
    item:
      item_locked:
        id: 160
        sub: 14
      item_unlocked:
        id: 15
        sub: 0
      name: "&aC &7{CURRENT}"
      lore:
        - '&7Cost: &6350k'
        - '&7Status: &6{STATUS}'
        - '&7Percentage: &6{PERCENTAGE}'
  3:
    rank: "d"
    item:
      item_locked:
        id: 160
        sub: 14
      item_unlocked:
        id: 15
        sub: 0
      name: "&aD &7{CURRENT}"
      lore:
        - '&7Cost: &6650k'
        - '&7Status: &6{STATUS}'
        - '&7Percentage: &6{PERCENTAGE}'
  4:
    rank: "e"
    item:
      item_locked:
        id: 160
        sub: 14
      item_unlocked:
        id: 15
        sub: 0
      name: "&aE &7{CURRENT}"
      lore:
        - '&7Cost: &61.7 Million'
        - '&7Status: &6{STATUS}'
        - '&7Percentage: &6{PERCENTAGE}'
  5:
    rank: "F"
    item:
      item_locked:
        id: 160
        sub: 14
      item_unlocked:
        id: 15
        sub: 0
      name: "&aF &7{CURRENT}"
      lore:
        - '&7Cost: &62.5 Million'
        - '&7Status: &6{STATUS}'
        - '&7Percentage: &6{PERCENTAGE}'
  6:
    rank: "G"
    item:
      item_locked:
        id: 160
        sub: 14
      item_unlocked:
        id: 15
        sub: 0
      name: "&aG &7{CURRENT}"
      lore:
        - '&7Cost: &64.5 Million'
        - '&7Status: &6{STATUS}'
        - '&7Percentage: &6{PERCENTAGE}'
  7:
    rank: "H"
    item:
      item_locked:
        id: 160
        sub: 14
      item_unlocked:
        id: 15
        sub: 0
      name: "&aH &7{CURRENT}"
      lore:
        - '&7Cost: &610 Million'
        - '&7Status: &6{STATUS}'
        - '&7Percentage: &6{PERCENTAGE}'
  8:
    rank: "I"
    item:
      item_locked:
        id: 160
        sub: 14
      item_unlocked:
        id: 15
        sub: 0
      name: "&aI &7{CURRENT}"
      lore:
        - '&7Cost: &625 Million'
        - '&7Status: &6{STATUS}'
        - '&7Percentage: &6{PERCENTAGE}'
  9:
    rank: "J"
    item:
      item_locked:
        id: 160
        sub: 14
      item_unlocked:
        id: 15
        sub: 0
      name: "&aJ &7{CURRENT}"
      lore:
        - '&7Cost: &650 Million'
        - '&7Status: &6{STATUS}'
        - '&7Percentage: &6{PERCENTAGE}'
  10:
    rank: "K"
    item:
      item_locked:
        id: 160
        sub: 14
      item_unlocked:
        id: 15
        sub: 0
      name: "&aK &7{CURRENT}"
      lore:
        - '&7Cost: &690 Million'
        - '&7Status: &6{STATUS}'
        - '&7Percentage: &6{PERCENTAGE}'
  11:
    rank: "L"
    item:
      item_locked:
        id: 160
        sub: 14
      item_unlocked:
        id: 15
        sub: 0
      name: "&aL &7{CURRENT}"
      lore:
        - '&7Cost: &6125 Million'
        - '&7Status: &6{STATUS}'
        - '&7Percentage: &6{PERCENTAGE}'
  12:
    rank: "M"
    item:
      item_locked:
        id: 160
        sub: 14
      item_unlocked:
        id: 15
        sub: 0
      name: "&aM &7{CURRENT}"
      lore:
        - '&7Cost: &6250 Million'
        - '&7Status: &6{STATUS}'
        - '&7Percentage: &6{PERCENTAGE}'
  13:
    rank: "N"
    item:
      item_locked:
        id: 160
        sub: 14
      item_unlocked:
        id: 15
        sub: 0
      name: "&aN &7{CURRENT}"
      lore:
        - '&7Cost: &6500 Million'
        - '&7Status: &6{STATUS}'
        - '&7Percentage: &6{PERCENTAGE}'
  14:
    rank: "O"
    item:
      item_locked:
        id: 160
        sub: 14
      item_unlocked:
        id: 15
        sub: 0
      name: "&aO &7{CURRENT}"
      lore:
        - '&7Cost: &6750 Million'
        - '&7Status: &6{STATUS}'
        - '&7Percentage: &6{PERCENTAGE}'
  15:
    rank: "P"
    item:
      item_locked:
        id: 160
        sub: 14
      item_unlocked:
        id: 15
        sub: 0
      name: "&aP &7{CURRENT}"
      lore:
        - '&7Cost: &61 Billion'
        - '&7Status: &6{STATUS}'
        - '&7Percentage: &6{PERCENTAGE}'
  16:
    rank: "Q"
    item:
      item_locked:
        id: 160
        sub: 14
      item_unlocked:
        id: 15
        sub: 0
      name: "&aQ &7{CURRENT}"
      lore:
        - '&7Cost: &62 Billion'
        - '&7Status: &6{STATUS}'
        - '&7Percentage: &6{PERCENTAGE}'
  17:
    rank: "R"
    item:
      item_locked:
        id: 160
        sub: 14
      item_unlocked:
        id: 15
        sub: 0
      name: "&aR &7{CURRENT}"
      lore:
        - '&7Cost: &63 Billion'
        - '&7Status: &6{STATUS}'
        - '&7Percentage: &6{PERCENTAGE}'
  18:
    rank: "S"
    item:
      item_locked:
        id: 160
        sub: 14
      item_unlocked:
        id: 15
        sub: 0
      name: "&aS &7{CURRENT}"
      lore:
        - '&7Cost: &63 Billion'
        - '&7Status: &6{STATUS}'
        - '&7Percentage: &6{PERCENTAGE}'
  19:
    rank: "T"
    item:
      item_locked:
        id: 160
        sub: 14
      item_unlocked:
        id: 15
        sub: 0
      name: "&aT &7{CURRENT}"
      lore:
        - '&7Cost: &64 Billion'
        - '&7Status: &6{STATUS}'
        - '&7Percentage: &6{PERCENTAGE}'
  20:
    rank: "U"
    item:
      item_locked:
        id: 160
        sub: 14
      item_unlocked:
        id: 15
        sub: 0
      name: "&aU &7{CURRENT}"
      lore:
        - '&7Cost: &65 Billion'
        - '&7Status: &6{STATUS}'
        - '&7Percentage: &6{PERCENTAGE}'
  21:
    rank: "V"
    item:
      item_locked:
        id: 160
        sub: 14
      item_unlocked:
        id: 15
        sub: 0
      name: "&aV &7{CURRENT}"
      lore:
        - '&7Cost: &615 Billion'
        - '&7Status: &6{STATUS}'
        - '&7Percentage: &6{PERCENTAGE}'
  22:
    rank: "W"
    item:
      item_locked:
        id: 160
        sub: 14
      item_unlocked:
        id: 15
        sub: 0
      name: "&aW &7{CURRENT}"
      lore:
        - '&7Cost: &618 Billion'
        - '&7Status: &6{STATUS}'
        - '&7Percentage: &6{PERCENTAGE}'
  23:
    rank: "X"
    item:
      item_locked:
        id: 160
        sub: 14
      item_unlocked:
        id: 15
        sub: 0
      name: "&aX &7{CURRENT}"
      lore:
        - '&7Cost: &625 Billion'
        - '&7Status: &6{STATUS}'
        - '&7Percentage: &6{PERCENTAGE}'
  24:
    rank: "Y"
    item:
      item_locked:
        id: 160
        sub: 14
      item_unlocked:
        id: 15
        sub: 0
      name: "&aY &7{CURRENT}"
      lore:
        - '&7Cost: &630 Billion'
        - '&7Status: &6{STATUS}'
        - '&7Percentage: &6{PERCENTAGE}'
  25:
    rank: "Z"
    item:
      item_locked:
        id: 160
        sub: 14
      item_unlocked:
        id: 15
        sub: 0
      name: "&aZ &7{CURRENT}"
      lore:
        - '&7Cost: &635 Billion'
        - '&7Status: &6{STATUS}'
        - '&7Percentage: &6{PERCENTAGE}'
  26:
    rank: "Z"
    item:
      item_locked:
        id: 160
        sub: 14
      item_unlocked:
        id: 15
        sub: 0
      name: "&aFree &7{CURRENT}"
      lore:
        - '&7Cost: &650 Billion'
        - '&7Status: &6{STATUS}'
        - '&7Percentage: &6{PERCENTAGE}'

Commands
/warpgui [player] - opens the GUI
/whatevercommandyouputinyourdamnconfig - also opens the GUI
Sounds easy, right?

Permissions
warpgui.command for /warpgui
warpgui.openothers for /warpgui <player>
essentials.warp.<rank> for any warp to show up as unlocked

You can make an item look enchanted, this does NOT show up in the lore, I found a class for that online and should probably thank the creator for that over here, but I forgot who it was ( ._.)

Do you feel the need to give me money?
I wont mind... My paypal is [email protected]
Any help to fuel my online porn addiction is welcome.

Similar projects

Plugin →