Skip to content

Instantly share code, notes, and snippets.

@AggerTV
Created August 30, 2020 18:05
Show Gist options
  • Save AggerTV/06bacb7a805ac571f41d974ef5f47d70 to your computer and use it in GitHub Desktop.
Save AggerTV/06bacb7a805ac571f41d974ef5f47d70 to your computer and use it in GitHub Desktop.
#Cell Ranks
#Specify ranks in this file and what permissions players have in cells at this rank
#Players can manage what ranks there friends are via a GUI
#Possible permissions
# CELL_* - Full admin access to the cell - Includes permissions to delete the cell and transfer ownership
# CELL_GUI - Open the cells GUI
# CELL_MANAGE_MEMBERS - Allows players to manage other peoples ranks of those with a lower priority
# CELL_PLACE - Allow players to place blocks
# CELL_BREAK - Allow players to break blocks
# CELL_INTERACT - Allow players to interact with chests
# CELL_DOOR_OPEN - Allow players to open the main door on the cell
# CELL_MANAGE_RENT - Allows a player to add rent
# >>>>>NOTE IF YOU MODIFY RANK NAMES, YOU WILL NEED TO MODIFY THE RANKS IN THE GUI LOCATED AT THE BOTTOM OF THIS FILE TO MATCH <<<<
Ranks:
Ejer: #The rank name identifier
priority: 0 #Highest priority - PRIORITY 0 IS CONSIDERED THE OWNER OF THE CELL. Two ranks cannot have the same priority
display_name: "&4Celle Ejer"
permissions:
- "CELL_*" #The owner of the cell can do anything in his/her cell
Co-Ejer: #I.E If you change this name, you will need to change it in the GUI found at the bottom of this file
priority: 1
display_name: "&cCelle Co-Ejer"
permissions:
- "CELL_GUI"
- "CELL_MANAGE_MEMBERS"
- "CELL_PLACE"
- "CELL_BREAK"
- "CELL_INTERACT"
- "CELL_DOOR_OPEN"
- "CELL_MANAGE_RENT"
Trusted:
priority: 2
display_name: "&eCelle Trusted Medlem"
permissions:
- "CELL_PLACE"
- "CELL_BREAK"
- "CELL_INTERACT"
- "CELL_DOOR_OPEN"
- "CELL_MANAGE_RENT"
Medlem:
priority: 3
display_name: "&eCelle Medlem"
permissions:
- "CELL_DOOR_OPEN"
- "CELL_INTERACT" #Can open chests, furnaces, etc
- "CELL_MANAGE_RENT" #Can add rent to cell
Besøgende:
priority: 4
display_name: "&abesøgende"
permissions:
- "CELL_DOOR_OPEN"
#You can create more ranks, with different permissions :)
#To make it so much easier, I have put the GUI for the ranks file here..
#The GUI for when a player wishes to promote/demote another player
#%PLAYER% - used for the member the cell owner is modifying
#For the action, use RANK:<NameOfRankInCellRanks.yml>
GUIForRanks:
MemberManagementPlayerView:
title: "&eÆndrer %PLAYER%"
slots: 36
items:
fillteritem:
material: GRAY_STAINED_GLASS_PANE
slot: -1 # -1 = filler
name: " "
lore: []
action: NONE
player:
material: PLAYER_HEAD #their skull will be applied
slot: 13
name: "&a%PLAYER%"
lore:
- " "
- "&7Denne brugers nuværende rang er %RANK%"
action: PLAYERMEMBERMANAGE
backitem:
material: BARRIER
slot: 27
name: "&4» &c&lTILBAGE"
lore: []
action: BACK
Ejer:
material: PAPER
slot: 20
name: "&e&lEjer Rang"
lore:
- " "
- "&7Set denne spiller til &4&lEjer Rang"
- "&7Note: Der kan kun være en ejer"
- "&7derfor kan kun ejeren overføre ejerskabet af cellen"
- " "
- "&7Tilladelser:"
- " » Alt"
action: RANK:Ejer #THE RANK NAME COMES AFTER RANK:
Co-Ejer:
material: PAPER
slot: 21
name: "&e&lCO-Ejer Rang"
lore:
- " "
- "&7Set denne spiller til &e&lCO-Ejer Rang"
- " "
- "&7Tilladelser:"
- " &8»&7 Admin GUI Access"
- " &8»&7 Administrer Cellemedlemmer"
- " &8»&7 Placer Blokke"
- " &8»&7 Fjern Blokke"
- " &8»&7 Åben Kister, Ovne osv."
- " &8»&7 Åben Celledør"
- " &8»&7 Tilføj leje"
action: RANK:Co-Ejer
Trusted:
material: PAPER
slot: 22
name: "&e&lTrusted Rang"
lore:
- " "
- "&7Set denne spiller til &e&lTrusted Rang"
- " "
- "&7Tilladelser:"
- " &8»&7 Placer Blokke"
- " &8»&7 Fjern Blokke"
- " &8»&7 Åben Kister, Ovne osv."
- " &8»&7 Åben Celledør"
- " &8»&7 Tilføj leje"
action: RANK:Trusted
Medlem:
material: PAPER
slot: 23
name: "&e&lMedlems Rang"
lore:
- " "
- "&7Set denne spiller til &e&lMedlems Rang"
- " "
- "&7Tilladelser:"
- " &8»&7 Åben Kister, Ovne osv."
- " &8»&7 Åben Celledør"
- " &8»&7 Tilføj leje"
action: RANK:Medlem
Besøgende:
material: PAPER
slot: 24
name: "&e&lBesøgende Rang"
lore:
- " "
- "&7Medlems Rang &e&lBesøgende Rang"
- " "
- "&7Tilladelser:"
- " &8»&7 Åben Celledør"
action: RANK:Visitor
remove:
material: PAPER
slot: 31
name: "&c&lFjern Rang"
lore:
- " "
- "&7Fjern denne afspiller fra din celle!"
- " "
action: RANK:Remove
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment