NameLayer: Difference between revisions

From CivWiki
Jump to navigation Jump to search
Content added Content deleted
(rewrite namelayer page)
Line 1: Line 1:
'''NameLayer''' is a common plugin on civ servers which allows for the creation of shared '''groups'''. Any player can create a group, and any player can be a member of as many groups as they want. Each group has a tiered rank structure, with players having varying level of permissions inside a particular group.
'''NameLayer''' ('''NL''') is an [https://github.com/CivMC/NameLayer open source] plugin which manages the creation of '''NameLayer Groups''', or simply '''groups'''. In conjunction with other plugins, Namelayer groups allow sharing [[reinforcements]] (and reinforced [[factories]]), [[bastions]], [[snitches]], group restricted [[Item Exchange|item exchange]]s and sending [[Chat|shared chat messsages]]. Members of a group are assigned one of four different ranks: member, mod, admin, or owner. Additionally, players can be blacklisted from groups.
== Rank ==


Groups interact closely with [[Citadel]], which allows reinforcing a block to a specific group. The group a block is reinforced to informs several other plugins. For instance, Citadel protections can be bypassed by players on their group, [[Snitch|snitches]] and [[Bastion|bastions]] will not affect players on their group, and [[Item Exchange|item exchanges]] can be locked to a specific group. Groups can also be used to send chat messages [[Chat|only certain players can see]].
Namelayer groups has four different ranks that members are be assigned to: member, mod, admin, and owner. There is also the primary owner role, which can only be held by one member at a time.
== Mechanics ==


=== Rank ===
Each rank guarantees a set of permissions for assigned players. By default higher ranks have more permissions but this can be altered. Additionally permissions may be guaranteed to all non-blacklisted players. Those with the appropriate permission and the primary owner may also alter which permissions are assigned to each rank through either the [[NameLayer#GUI|NameLayer GUI]] or the <code>/nlmp</code> command
Groups come with a set of ranks. A widely used set is ''primary owner > owner'' > ''admin'' > ''mod'' > ''member'', but this is not universal across civ servers. Players cannot create, rename, or move the ranks themselves, but they can assign players to different ranks.


Each group can have only one primary owner, though primary ownership can be transferred by the current primary owner. Other ranks have no limit on the number of players in them.
== GUI ==


=== Permissions ===
Namelayer can be used entirely via commands, but it also offers a GUI which can be easier to use. Use the <code>/nl</code> command to bring up the Namelayer GUI.
Each rank comes with a default set of permissions. The permissions each rank grants can be modified for a particular group.
{| class="wikitable mw-collapsible mw-collapsed"
|+Base Namelayer Permissions
!Permission
!Description
|-
|LIST_PERMS
|Allows seeing how the permissions are set up for the group
|-
|GROUPSTATS
|Gives access to various group statistics such as member counts by permission type, who owns the group etc
|-
|OPEN_GUI
|Allows opening the GUI for this group
|-
|JOIN_PASSWORD
|perm level given to members when they join with a password
|-
|MEMBERS
|Allows inviting new members and removing existing members
|-
|MODS
|Allows inviting/promoting new members and removing existing mods
|-
|ADMINS
|Allows inviting/promoting new members and removing existing admins
|-
|OWNER
|Allows inviting/promoting new members and removing existing owners
|-
|BLACKLIST
|Allows viewing this groups blacklist, adding players to the blacklist and removing players from the blacklist
|-
|PASSWORD
|Allows viewing this groups password and changing or removing it");
|-
|PERMS
|Allows modifying permissions for this group
|-
|DELETE
|Allows deleting this group
|-
|LINKING
|(on servers that support it) Allows linking this group to another group as a supergroup or a subgroup
|-
|MERGE
|(on servers that support it) Allows merging this group into another or merging another group into this one
|}
Other [[plugins]] can add permissions to groups, which are not a part of the base NameLayer plugin. These permissions act the same as the base permissions in that they can be modified on a per-group basis. The permissions provided by the most common plugins are listed below. Note that there may be permissions in this table which are not present on a civ server, and vice versa, depending on which plugins a civ server includes.
{| class="wikitable mw-collapsible mw-collapsed"
|+Additional Namelayer Permissions
!Provided By
!Permission
!Description
|-
| rowspan="5" |[[Bastion]]
|BASTION_PEARL
|Can pearl into bastion fields
|-
|BASTION_ALLOW_EXILED
|Allows exiles inside bastion range
|-
|BASTION_PLACE
|Can place in bastion ranges reinforced to group
|-
|BASTION_LIST
|Can list bastions on group (/bsl)
|-
|BASTION_MANAGE_GROUPS
|
|-
| rowspan="8" |[[Citadel]]
|DOORS
|Can open and close reinforced doors
|-
|ACIDBLOCK
|Can place acidblocks reinforced to group (/ctacid)
|-
|CROPS
|Can place and destroy crops
|-
|INSECURE_REINFORCMENT
|Can use hoppers to take items out of reinforced containers /ctinsecure
|-
|REINFORCEMENT_INFO
|Can use /cti and see group block reinforced to
|-
|BYPASS_REINFORCEMENT
|Can use /ctb and break reinforcement, returning reinforcement item
|-
|REINFORCE
|Can /ctf, /ctb blocks
|-
|CHESTS
|Can use chests
|-
| rowspan="2" |[[Factory|FactoryMod]]
|UPGRADE_FACTORY
|Can upgrade factories
|-
|USE_FACTORY
|Can use factory reinforced to group
|-
| rowspan="8" |[[Snitch]]
|CLEAR_SNITCHLOG
|Can clear snitchlog with /jaclear
|-
|SNITCH_NOTIFICATIONS
|Can see chat messageswhen players trigger snitches
|-
|SNITCH_IMMUNE
|Will no longer cause snitch alerts when in range of snitches on group.
|-
|READ_SNITCHLOG
|Can check snitchlogs with /ja
|-
|SNITCH_TOGGLE_LEVER
|Can do /jaToggleLevers 1 to allow snitchs triggering redstone
|-
|LIST SNITCHES
|can /jalist to see all snitches on group
|-
|LOOKUP_SNITCH
|Can /jalookup a snitch giving coords
|-
|RENAME_SNITCH
|Can rename snitches
|-
| rowspan="2" |[[Chat]]
|READ CHAT
|Can read chat messages sent in group
|-
|WRITE_CHAT
|Can type messages in group
|-
|[[Kira]]
|KIRA_MANAGE_CHANNEL
|Can setup Kira relays on discord to relay group messages and alerts
|}


== GUI ==
[[File:Namelayer Main GUI Example.png|thumb|250px|The GUI opened by typing '/nl'.]]


NameLayer can be used entirely via commands, but there is a GUI which may be easier to use. use the <code>/nl</code> command to bring up the GUI.
The first screen of the Namelayer GUI shows rows of chestplates. Each chestplate corresponds to a Namelayer group, and the type of chestplate shows your permission level. Leather is member, gold is mod, iron is admin, and diamond is owner or primary owner. The enchanted chestplate shows your default group, which is the group used by [[Citadel]] commands when a group is not specified.


[[File:Namelayer Main GUI Example.png|thumb|250px|The GUI opened by typing '/nl'.]]
Even though an account can be Owner of any number of NameLayer groups, an account can only be ''Primary Owner'' of up to 15 groups;
after that, group creations and Primary Owner transfers to that account are denied, until groups are either transferred to another account or deleted.


The first screen of the Namelayer GUI shows rows of chestplates. Each chestplate corresponds to a Namelayer group, and the type of chestplate shows your permission level. Leather is member, gold is mod, iron is admin, and diamond is owner or primary owner. The enchanted chestplate shows your [[default group]].
One can get around this limit by owning multiple accounts and adding the actively used accounts as Owner (instead of Primary Owner, which is one of the alt accounts).


== Unique Usernames ==
== Unique Usernames ==
Line 25: Line 164:
If a player logs in with a username which is already in use in a namelayer group on the server, that player's displayed name will have a "1" appended to it.
If a player logs in with a username which is already in use in a namelayer group on the server, that player's displayed name will have a "1" appended to it.


== Commands ==
== Command Reference ==


{|class="wikitable"
{|class="wikitable"
Line 121: Line 260:
| /nlsbl <group>
| /nlsbl <group>
|Shows all blacklisted players for a group
|Shows all blacklisted players for a group
|}

== Permissions ==
Each plugin that uses NameLayer provides it's own set of permissions to manipulate a groups permissions you can use <code>/nlmp</code> or the [[NameLayer#GUI|GUI]]

The permissions provided by NameLayer itself are:
{{glossary}}
{{term|LIST_PERMS}}
{{defn|Allows seeing how the permissions are set up for the group}}
{{term|GROUPSTATS}}
{{defn|Gives access to various group statistics such as member counts by permission type, who owns the group etc}} <!--TODO: verify what exactly this means-->
{{term|OPEN_GUI}}
{{defn|Allows opening the GUI for this group}}
{{term|JOIN_PASSWORD}}
{{defn|<!--not sure how this works(TODO:find out :p) but-->perm level given to members when they join with a password}}
{{term|MEMBERS}}
{{defn|Allows inviting new members and removing existing members"}}
{{term|MODS}}
{{defn|Allows inviting/promoting new members and removing existing mods"}}
{{term|ADMINS}}
{{defn|Allows inviting/promoting new members and removing existing admins}}
{{term|OWNER}}
{{defn|Allows inviting/promoting new members and removing existing owners}}
{{term|BLACKLIST}}
{{defn|Allows viewing this groups blacklist, adding players to the blacklist and removing players from the blacklist}}
{{term|PASSWORD}}
{{defn|Allows viewing this groups password and changing or removing it");}}
{{term|PERMS}}
{{defn|Allows modifying permissions for this group}}
{{term|DELETE}}
{{defn|Allows deleting this group}}
{{term|LINKING}}
{{defn|(on servers that support it) Allows linking this group to another group as a supergroup or a subgroup}}
{{term|MERGE}}
{{defn|(on servers that support it) Allows merging this group into another or merging another group into this one}}
{{glossary end}}
<!--TODO: split this table into the appropriate page for each plugin-->
{|class="wikitable"
|+ class="nowrap" | Namelayer Permissions (ordered as they appear in the GUI)
!width="30%"| Permission Name
!width="70%"| Function
|-
| BASTION_PEARL
| Can pearl into bastion fields
|-
| BASTION_ALLOW_EXILED
| Allows exiles inside bastion range
|-
| DOORS
| Can open and close reinforced doors
|-
|CLEAR_SNITCHLOG
| Can clear snitchlog with /jaclear
|-
|SNITCH_NOTIFICATIONS
| Can see chat messageswhen players trigger snitches
|-
|READ CHAT
| Can read chat messages sent in group
|-
|ACIDBLOCK
| Can place acidblocks reinforced to group (/ctacid)
|-
|CROPS
| Can place and destroy crops
|-
|UPGRADE_FACTORY
| Can upgrade factories
|-
|MEMEMANA_WITHDRAW
| Can withdraw mana
|-
|SNITCH_IMMUNE
| Will no longer cause snitch alerts when in range of snitches on group.
|-
|BASTION_PLACE
| Can place in bastion ranges reinforced to group
|-
|WRITE_CHAT
| Can type messages in group
|-
|READ_SNITCHLOG
| Can check snitchlogs with /ja
|-
|USE_FACTORY
| Can use factory reinforced to group
|-
|INSECURE_REINFORCMENT
| Can use hoppers to take items out of reinforced containers /ctinsecure
|-
|SNITCH_TOGGLE_LEVER
| Can do /jaToggleLevers 1 to allow snitchs triggering redstone
|-
|BASTION_LIST
| Can list bastions on group (/bsl)
|-
|REINFORCEMENT_INFO
| Can use /cti and see group block reinforced to
|-
|BYPASS_REINFORCEMENT
| Can use /ctb and break reinforcement, returning reinforcement item
|-
|REINFORCE
| Can /ctf, /ctb blocks
|-
|LIST SNITCHES
| can /jalist to see all snitches on group
|-
|BASTION_MANAGE_GROUPS
|
|-
|LOOKUP_SNITCH
| Can /jalookup a snitch giving coords
|-
|RENAME_SNITCH
| Can rename snitches
|-
|CHESTS
| Can use chests
|-
|KIRA_MANAGE_CHANNEL
| Can setup Kira relays on discord to relay group messages and alerts
|}
|}



Revision as of 15:34, 25 October 2023

NameLayer is a common plugin on civ servers which allows for the creation of shared groups. Any player can create a group, and any player can be a member of as many groups as they want. Each group has a tiered rank structure, with players having varying level of permissions inside a particular group.

Groups interact closely with Citadel, which allows reinforcing a block to a specific group. The group a block is reinforced to informs several other plugins. For instance, Citadel protections can be bypassed by players on their group, snitches and bastions will not affect players on their group, and item exchanges can be locked to a specific group. Groups can also be used to send chat messages only certain players can see.

Mechanics

Rank

Groups come with a set of ranks. A widely used set is primary owner > owner > admin > mod > member, but this is not universal across civ servers. Players cannot create, rename, or move the ranks themselves, but they can assign players to different ranks.

Each group can have only one primary owner, though primary ownership can be transferred by the current primary owner. Other ranks have no limit on the number of players in them.

Permissions

Each rank comes with a default set of permissions. The permissions each rank grants can be modified for a particular group.

Base Namelayer Permissions
Permission Description
LIST_PERMS Allows seeing how the permissions are set up for the group
GROUPSTATS Gives access to various group statistics such as member counts by permission type, who owns the group etc
OPEN_GUI Allows opening the GUI for this group
JOIN_PASSWORD perm level given to members when they join with a password
MEMBERS Allows inviting new members and removing existing members
MODS Allows inviting/promoting new members and removing existing mods
ADMINS Allows inviting/promoting new members and removing existing admins
OWNER Allows inviting/promoting new members and removing existing owners
BLACKLIST Allows viewing this groups blacklist, adding players to the blacklist and removing players from the blacklist
PASSWORD Allows viewing this groups password and changing or removing it");
PERMS Allows modifying permissions for this group
DELETE Allows deleting this group
LINKING (on servers that support it) Allows linking this group to another group as a supergroup or a subgroup
MERGE (on servers that support it) Allows merging this group into another or merging another group into this one

Other plugins can add permissions to groups, which are not a part of the base NameLayer plugin. These permissions act the same as the base permissions in that they can be modified on a per-group basis. The permissions provided by the most common plugins are listed below. Note that there may be permissions in this table which are not present on a civ server, and vice versa, depending on which plugins a civ server includes.

Additional Namelayer Permissions
Provided By Permission Description
Bastion BASTION_PEARL Can pearl into bastion fields
BASTION_ALLOW_EXILED Allows exiles inside bastion range
BASTION_PLACE Can place in bastion ranges reinforced to group
BASTION_LIST Can list bastions on group (/bsl)
BASTION_MANAGE_GROUPS
Citadel DOORS Can open and close reinforced doors
ACIDBLOCK Can place acidblocks reinforced to group (/ctacid)
CROPS Can place and destroy crops
INSECURE_REINFORCMENT Can use hoppers to take items out of reinforced containers /ctinsecure
REINFORCEMENT_INFO Can use /cti and see group block reinforced to
BYPASS_REINFORCEMENT Can use /ctb and break reinforcement, returning reinforcement item
REINFORCE Can /ctf, /ctb blocks
CHESTS Can use chests
FactoryMod UPGRADE_FACTORY Can upgrade factories
USE_FACTORY Can use factory reinforced to group
Snitch CLEAR_SNITCHLOG Can clear snitchlog with /jaclear
SNITCH_NOTIFICATIONS Can see chat messageswhen players trigger snitches
SNITCH_IMMUNE Will no longer cause snitch alerts when in range of snitches on group.
READ_SNITCHLOG Can check snitchlogs with /ja
SNITCH_TOGGLE_LEVER Can do /jaToggleLevers 1 to allow snitchs triggering redstone
LIST SNITCHES can /jalist to see all snitches on group
LOOKUP_SNITCH Can /jalookup a snitch giving coords
RENAME_SNITCH Can rename snitches
Chat READ CHAT Can read chat messages sent in group
WRITE_CHAT Can type messages in group
Kira KIRA_MANAGE_CHANNEL Can setup Kira relays on discord to relay group messages and alerts

GUI

NameLayer can be used entirely via commands, but there is a GUI which may be easier to use. use the /nl command to bring up the GUI.

The GUI opened by typing '/nl'.

The first screen of the Namelayer GUI shows rows of chestplates. Each chestplate corresponds to a Namelayer group, and the type of chestplate shows your permission level. Leather is member, gold is mod, iron is admin, and diamond is owner or primary owner. The enchanted chestplate shows your default group.

Unique Usernames

Although minecraft allows updating your account name, namelayer mechanics rely on a player's username being unique. Namelayer will use whatever username you first log in with. Changing your minecraft account username will not change it on your namelayer groups.

If a player logs in with a username which is already in use in a namelayer group on the server, that player's displayed name will have a "1" appended to it.

Command Reference

Namelayer Commands
Namelayer command Function
/nlcg <group> [password] Creates a group, optionally with password
/nlsp <group> <password> Adds password to an existing group
/nljg <group> <password> Joins a password protected group
/nlag <group> Accepts an invitation to a group
/nlbl <group> <player> Blacklists a player in a group
/nldg <group> Deletes a group
/nlip <group> <player> (PlayerType- default MEMBERS) Invites player to a group with optional rank
/nlleg <group> Leaves a group
/nllink <super group> <\sub group> Links two groups to each other as nested groups. (unsupported)
/nlmg <The group left> <The group that will be gone> Merges two groups together. (Warning : Doing this is not recommended and may eventually cause groups to break)
/nlmp <group> <add/remove> <PlayerType> <PermissionType> Modifies the permissions of a group.
/nlpp <group> <player> <playertype> Promotes/Demotes a Player in a group
/nlrg <group> Rejects an invitation to a group.
/nlubl <group> <player> Removes a player from the blacklist for a group
/nlrm <group> <member> Removes a member from a group.
/nlri <group> <player> Revokes an invite
/nlsdg <group> Sets or changes default group
/nltaai Toggles the auto-acceptance of invites
/nltg <group> <player> Transfers a group to another owner
/nlunlink </super group> Unlinks two groups from each other. [Unsupported]
/nlun [CONFIRM] Updates account name on the server to the one minecraft account currently has [Unsupported]
/nllg Lists all groups player is in. Formatted "<group> : <permission level>"
/nlgdg Gets default group
/nlgls Gets the amount of groups on server
/nlgs <group> Get stats about a group. (Total members and list of members)
/nlid Infodump including list of members for each role level in each group
/nllci Lists players current active invites.
/nllm <group> (PlayerType) List the players with selected role in a group
/nllp <group> <PlayerType> Shows permissions for a PlayerType in a group.
/nlsbl <group> Shows all blacklisted players for a group