Changes

Unturned: OpenMod

1,599 bytes added, 07:43, 22 January 2022
/* SilK's ShopsUI */
The following lines were added (+) and removed (-):
There are many configuration options.  One of the more difficult options is taking advantage of the blacklist and whitelist feature.  Lets do an example where we want just certain things in the shop to only be purchasable by players in a specific permissions group.  We will have vehicles that only players in the cardealer group can buy, but other players can not.  First, we must add the car to the shop, then whitelist the car to the cardealer permissions group.  Use these command examples: /vshop add 31 120 /vshop whitelist add 31 cardealerWe added a sedan to the shop at a cost of $120.  The whitelisted it so only people in the permission group cardealer can buy it.  Now we have to edit Permissions.config.xml to create the cardealer group and give it the correct permission for ShopUI whitelist.  See this example entry:    <Group>      <Id>cardealer</Id>      <DisplayName>cardealer</DisplayName>      <Prefix />      <Suffix />      <Color>white</Color>      <Members>        <Member>7656119XXXXXXXXXX</Member>        <Member>7656119XXXXXXXXXX</Member>      </Members>      <ParentGroup>default</ParentGroup>      <Priority>100</Priority>      <Permissions>        <Permission Cooldown="90">essentials.kit.shopkeeper</Permission>        <Permission Cooldown="1">ShopsUI:commands.vshop</Permission>        <Permission Cooldown="1">ShopsUI:commands.buy</Permission>        <Permission Cooldown="0">ShopsUI:groups.cardealer</Permission>      </Permissions>    </Group>You wont need the kit entry, but it is present to demonstrate how the inherited permissions work.
Administrator
663
edits