插件介绍
一个GUI皮肤商店,允许玩家购买定制皮肤
This plugin is currently in beta version. So updates will be frequent and you may need to redo your config after an update if config file format has changed
The skin shop allows players to buy skin packs or individual skins usings Economics or ServerRewards. It also lets them sell back the skins.
Players can "equip" skins which they own and any time they craft or pickup at item the skin will be switched to their equipped skin.
You will need a database of skins in order to use this plugin.
主要用途
主要用于skins、shop等服务端功能。 本插件由 Rustoholics 发布,当前目录记录版本为 v0.5.2,uMod 累计下载 12,777 次。
适用场景
- 带经济、商店、礼包或奖励系统的服务器
功能分类
查看 uMod 官方英文简介
A GUI skin shop to allow players to buy custom skins
权限节点
skinshop.use permission will allow players to open the skinshop. If you want to give this access to all players run the command oxide.grant group default skinshop.use
skinshop.admin permission will allow you to run the skinshop.builddatabase, skinshop.download and skinshop.givepack commands
skinshop.blacklist permission will allow you to blacklist skins in game.
There is an internal skinshop.welcomepack permission, but this is used internally only to determine if a user has already received a welcome skin pack.
You can give players discounts by giving them permissions: skinshop.vip1 and skinshop.vip2The discounts are set under the VipDiscounts in the config file.
Note that you can add more VIP tiers by adding more discounts in the VipDiscounts array. So if you added a 3rd value to the array then permission skinshop.vip3 would automatically be created.
授权示例:oxide.grant user 玩家名 权限节点;撤销使用 oxide.revoke。
指令说明
skinshop opens the GUI skin shop
skinshop.download will download the database.json file contain all the workshop skins.
skinshop.builddatabase will crawl the entire steam workshop and cache all skins. It is suggested you do this if you want to offer skin packs because the skin pack will only give skins from the cache.
skinshop.givepack {steamid} gives a user a skin pack using their steam ID
skinshop.getskin while looking at an item (in game) will give you a message with the Skin ID
skinshop.blacklist.id {skinid} will add the skin to blacklist (requires skinshop.blacklist permission)
skinshop.blacklist.this will blacklist the skin of any item you are looking at and also change the skin of the item back to default (requires skinshop.blacklist permission)
相关依赖
- Economics
- Image Library
- Memory Cache
- Human NPC
- Server Rewards
配置说明
Skin Packs: You can create up to 6 different skin pack types. Make sure you give them each a unique key (the config starts with pack "0" and "1" as examples. If you want to limit the skins available in a pack you can add the specific Skin IDs to the PossibleSkinIds. And you can limit skins to specific categories by adding the item type shortname to the PossibleSkinCategories (such as ["hoodie","shirt"] would allow only hoodie and shirt skins in that pack)
Welcome Packs: If you want new players to automatically get a skin pack when they join the server the first time, then add the key of the skin packs to the Give Welcome Skin Pack... config.
Blacklist: You add skins that you do not want people to buy to the list of blacklisted Skin IDs
Hide Categories Enter the shortname of any categories that you want hidden into the HideCategories config array. For example "HideCategories":["hoodie","pants"] would mean these categories would not appear in the category selection page.
HumanNPC Add your NPC Ids (found using /npc_list command) to the skinshop config under HumanNpcIds. Whenever a player "uses" the NPC (presses "e" on them) the skinshop GUI will open.
Below is the full json of configuration options:
{ "SkinPacks": { "0": { "SkinId": 2631235609, "ImageUrl": "https://steamuserimages-a.akamaihd.net/ugc/1765966378913384293/506A7A4ADA3C8C6B9729700BB21E0AB6F156E9B4/", "NumberOfSkins": 3, "PackName": "Bronze Skin Pack", "Price": 1000.0, "PossibleSkinIds": [], "PossibleSkinCategories": [] }, "1": { "SkinId": 2631961805, "ImageUrl": "https://steamuserimages-a.akamaihd.net/ugc/1765966378917593382/7E8B5C1F34440329A4C993B6E751609A148045B3/", "NumberOfSkins": 6, "PackName": "Gold Skin Pack", "Price": 1500.0 } }, "BlackListedSkins": [ 0, 124124924 ], "Give Welcome Skin Pack index to new players ([0,0] would give 2 of the first packs, empty [] for disable)": [ 0 ], "DefaultSkinPrice": 1000.0, "DefaultInstantPricePrice": 50.0, "HideCategories": [], "Currency Plugin (can be 'Economics' or 'ServerRewards')": "Economics", "HumanNpcIds": [0], "SkinPackImageUrl": "https://rustoholics.com/img/skinpackopen4.png", "SearchIconUrl": "https://www.iconsdb.com/icons/preview/white/search-3-xxl.png", "DiscordApiKey": "kjfsdf09sd8f0sd9f8()*f09184019241294", "DiscordChannelId": "48120091590259", "Color": { "Red": "0.85 0.33 0.25", "Green": "0.42 0.55 0.22", "Yellow": "0.82 0.53 0.13", "Blue": "0.22 0.35 0.55", "Grey": "0.2 0.2 0.2", "White": "1.0 1.0 1.0" }, "EnableCaching": true }
官方配置示例
{
"SkinPacks": {
"0": {
"SkinId": 2631235609,
"ImageUrl": "https://steamuserimages-a.akamaihd.net/ugc/1765966378913384293/506A7A4ADA3C8C6B9729700BB21E0AB6F156E9B4/",
"NumberOfSkins": 3,
"PackName": "Bronze Skin Pack",
"Price": 1000.0,
"PossibleSkinIds": [],
"PossibleSkinCategories": []
},
"1": {
"SkinId": 2631961805,
"ImageUrl": "https://steamuserimages-a.akamaihd.net/ugc/1765966378917593382/7E8B5C1F34440329A4C993B6E751609A148045B3/",
"NumberOfSkins": 6,
"PackName": "Gold Skin Pack",
"Price": 1500.0
}
},
"BlackListedSkins": [
0,
124124924
],
"Give Welcome Skin Pack index to new players ([0,0] would give 2 of the first packs, empty [] for disable)": [
0
],
"DefaultSkinPrice": 1000.0,
"DefaultInstantPricePrice": 50.0,
"HideCategories": [],
"Currency Plugin (can be 'Economics' or 'ServerRewards')": "Economics",
"HumanNpcIds": [0],
"SkinPackImageUrl": "https://rustoholics.com/img/skinpackopen4.png",
"SearchIconUrl": "https://www.iconsdb.com/icons/preview/white/search-3-xxl.png",
"DiscordApiKey": "kjfsdf09sd8f0sd9f8()*f09184019241294",
"DiscordChannelId": "48120091590259",
"Color": {
"Red": "0.85 0.33 0.25",
"Green": "0.42 0.55 0.22",
"Yellow": "0.82 0.53 0.13",
"Blue": "0.22 0.35 0.55",
"Grey": "0.2 0.2 0.2",
"White": "1.0 1.0 1.0"
},
"EnableCaching": true
}{
["DiscordOpenPackMessage"] = ":gift: ({0:HH:mm}) **{1}** has opened a {2}",
["GuiCloseButton"] = "(X) Close",
["GuiTitleOpenSkinPack"] = "Open Skin Pack",
["GuiButtonViewAllMySkins"] = "View All My Skins",
["WithdrawCoinsFailed"] = "We could not collect enough coins to buy this item",
["NotEnoughCoinsToBuy"] = "You need {0} to buy this item!",
["NoRoomInInventory"] = "You do not have any room in your inventory to buy this pack",
["GuiButtonSkinEquipped"] = "√ Equipped",
["GuiButtonSkinUnequipped"] = "Unequipped",
["GuiButtonBuyNow"] = "Buy Now: {0} coins",
["GuiButtonBuyNowShort"] = "Buy Now: {0}",
["GuiTitleSkinShop"] = "Skin Shop",
["GuiButtonSelectCategory"] = "Select Category",
["GuiButtonSkinPacks"] = "Skin Packs",
["GuiButtonMySkins"] = "My Skins",
["CommandDatabaseBuilding"] = "Starting database building, but it could take a while",
["AccessDenied"] = "Access Denied",
["InstantSellDescription"] = "You can sell this \n skin instantly for {0} coins",
["InvalidPlayer"] = "Invalid Player",
["ItemNotFound"] = "Item Not Found",
["ItemSold"] = "Skin has been sold for {0} coins",
["PluginNotInstalled"] = "The {0} plugin is not installed",
["SavingDataMessage"] = "Saving Skin Data: {0} players",
["ButtonSell"] = "Sell",
["ButtonSellNow"] = "Sell Now",
["SkinDatabaseLoaded"] = "Skin database loaded with {0} skins",
["FilesNotFound"] = "Files not found (probably directory not created yet",
["UserIDMatchNotFound"] = "No UID match found in filename",
["SkinsLoadedForUser"] = "Loading skins for user {0}",
["DownloadFailed"] = "Download of JSON database failed: {0}",
["DownloadEmpty"] = "Downloaded Database JSON was empty",
["MissingImage"] = "There was a missing image {0}",
["ItemDeleted"] = "Item {0} has been deleted from the skin database",
["IconsLoaded"] = "{0} category icons loaded",
["DatabaseBuildCompleted"] = "Database build has been completed",
["DatabaseCategoryCompleted"] = "{0} single category build has been completed!",
["DatabasePageDone"] = "{0} ({1}): Page {2}",
["DatabaseCategoryPageDone"] = "{0}: Page {1}",
["InstantSell"] = "Instant Sell",
["ButtonApply"] = "Apply"
}更新日志
本站记录 uMod 官方插件信息。完整的历史更新日志请参阅 uMod 官方页面。
安装方法
- 确认服务器已安装 Oxide / uMod 或兼容的 Carbon 框架。
- 登录本站后点击"下载",由 uMod 官方地址获取作者发布的文件。
- 将 .cs 文件放入服务器的
oxide/plugins目录。 - 观察服务端控制台,确认插件编译并成功加载。
- 具体配置、权限、指令和依赖请查看原作者的 uMod 页面。
使用前注意
- Rust 更新后,请先确认插件是否仍兼容当前服务端版本。
- 修改配置前建议备份原配置文件,并在测试服验证后再部署到正式服。
- 若插件依赖其他扩展或库,以 uMod 原作者页面的最新说明为准。
- 本站中文内容用于辅助理解,遇到版本差异时以官方英文文档和源码为准。
中文介绍由 uMod 官方简介翻译整理。插件著作权、许可证、完整文档和最新发布状态均以原作者及 uMod 官方页面为准。