Jump to content

Permissions instead of using IsAdmin

Pending 3.4.0

0xBADF00D
0xBADF00D

Posted

Hello, could you set up a permissions system instead of using IsAdmin please?

aimacak

Posted

2 hours ago, 0xBADF00D said:

Hello, could you set up a permissions system instead of using IsAdmin please?

Hello, I will discuss this with KpucTaJI.

  • Like 1
aimacak

Posted

@0xBADF00D
I'm sorry, what kind of actions in the plugin do you want to have permissions for?

0xBADF00D

Posted (edited)

@aimacak 

My suggestion would be:

npcspawn.preset.read - allows players to open /preset and view all presets
npcspawn.preset.manage.own - allows players to create, edit, rename and delete their own presets
npcspawn.preset.manage.others - allows players to edit, rename and delete presets created by other players
npcspawn.preset.spawn - allows players to use /spawnpreset

The following commands should use the same preset-management permissions:

/SetWears
/SetBelts

These commands do not need separate permissions. A player with npcspawn.preset.manage.own should be able to use them on their own presets, while a player with npcspawn.preset.manage.others should be able to use them on presets created by other players. Btw these commands are missing from the plugin description, I just discovered them

It would also be useful to display the preset owner’s name and SteamID somewhere in the preset GUI.

Edited by 0xBADF00D
  • Like 1

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
2.8m
Total downloads
Customers
11.7k
Customers served
Files Sold
167.1k
Total sales
Payments
3.6m
Processed total
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.