自定义门户

自定义门户

自定义门户-PCI1
自定义门户
此内容为付费资源,请付费后查看
10
付费资源

原创地址自定义门户 – 插件 – Codefling

关于自定义门户—-群友哒*溜 提供

该插件添加了自定义门户,可以部署在玩家的基地、原版和自定义纪念碑上。

 

 

re1.thumb.png.d3a1698f8bce006ee44a3900877895ad.png

自定义地图

要在地图上使用自定义门户,您需要放置任何预制件并从中创建自定义预制件。

将其命名 为 CustomPortals.<portal name>

2 个同名的门户将链接。

 

!确保不要破坏预制件,也不要将它们作为其他预制件的一部分添加!

 

 

 

 

命令

玩家聊天命令

  • /buyportal – 购买门户(需要 customportals.buy 权限)
  • /spawnportal – 生成传送门(需要 customportals.spawn 权限)

管理员聊天命令

下面提到的所有命令都需要 customportals.admin 权限!

  • /customportals add <传送门名称> – 在你站立的纪念碑上生成传送门
  • /customportals remove – 从纪念碑中删除传送门
  • /customportals reset – 从纪念碑中删除所有传送门
  • /ChangePortal – 设置任何门户

管理控制台命令

  • giveportal <amount> <player name> – 为指定的玩家提供传送门

权限

  • customportals.use – 使用门户所必需的
  • customportals.admin – 允许使用 /customportals 和 giveportal 命令
  • customportals.buy – 允许玩家使用 /buyportal 命令购买传送门
  • customportals.free – 允许玩家使用 /buyportal 命令免费获得传送门(仍然需要购买权限)
  • customportals.freeuse – 允许玩家免费使用门户(如果设置了使用价格)
  • customportals.bypasslimit – 允许玩家放置无限数量的传送门

  • customportals.bypasslinkinglimits – 允许玩家链接任何传送门

  • customportals.spawn – 允许玩家使用命令生成传送门,而不是手动放置它们

如果您是管理员,则可以指定单个门户权限。它们将另存为 customportals.portal.<portal 权限名称>
 

地方化

此插件内置了对以下语言的支持 –

  • 英语
  • 俄语

应用程序接口

BasePortal SpawnPortal(Vector3 position, Quaternion rotation, string name) // spawns portal
Item CreatePortalItem() // returns portal item

 

 

 

图片[3]-自定义门户-PCI1

图片[4]-自定义门户-PCI1

图片[5]-自定义门户-PCI1

图片[6]-自定义门户-PCI1

图片[7]-自定义门户-PCI1

 

© 版权声明
THE END
喜欢就支持一下吧
点赞13 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容