Essentials: Contexts - Brainstorming

Created on 21 Jan 2020  路  2Comments  路  Source: EssentialsX/Essentials

Feature description
Since modern permissions plugins have context support, what sort of contexts would be useful for permissions matching? Here are a few based on things that I've seen in the discord, other ideas are appreciated since I don't know much about EssX's full feature set.

Context | Values | Purpose
---------- | -------- | -------------
afk | true/false | Indicate whether or not a player is marked AFK
jail | jail name | List the current jail a player is in, when they are in a jail

Probably not worth implementing these until we get a common permissions API together? Gives time to think about what's useful though.

How the feature is useful

These contexts allow users to customize the affected EssX features by choosing which permissions are applicable in each context. For example, this allows preventing a player from taking damage while afk without having that specifically be a feature of Essentials' AFK handling.

discussion

Most helpful comment

A few more based a quick glance at other plugins' integrations with EssentialsX:

Context | Values | Purpose
---|---|---
god | true/false | Indicates whether a player is in god mode.
flight | true/false | Indicates whether a player has flight mode enabled.
vanished | true/false | Indicates whether a player is vanished.
mute | true/false | Indicates whether a player has been muted.

I'm happy to consider implementing these when there is a stable context API we can rely upon, whether that's LP or a common API.

All 2 comments

A few more based a quick glance at other plugins' integrations with EssentialsX:

Context | Values | Purpose
---|---|---
god | true/false | Indicates whether a player is in god mode.
flight | true/false | Indicates whether a player has flight mode enabled.
vanished | true/false | Indicates whether a player is vanished.
mute | true/false | Indicates whether a player has been muted.

I'm happy to consider implementing these when there is a stable context API we can rely upon, whether that's LP or a common API.

Closing this since the context system now exists in EssentialsX. Further issues can be opened to request additional contexts.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

smmmadden picture smmmadden  路  26Comments

mibby picture mibby  路  25Comments

Stoniasawsome picture Stoniasawsome  路  19Comments

AdminZero picture AdminZero  路  17Comments

simon44556 picture simon44556  路  17Comments