Added optional permission check for settings

This commit is contained in:
Cooldude2606
2020-06-03 00:36:56 +01:00
parent 3f2382d2ac
commit 1c6ea05f5b
6 changed files with 15 additions and 4 deletions

View File

@@ -13,6 +13,7 @@ local PlayerData = require 'expcore.player_data' --- @dep expcore.player_data
local UsesServerUps = PlayerData.Settings:combine('UsesServerUps')
UsesServerUps:set_default(false)
UsesServerUps:set_metadata{
permission = 'command/server-ups',
stringify = function(value) return value and 'Visible' or 'Hidden' end
}