HOME Utilities

模组

· 作者 MimStar_

为你的服务器添加家园/传送点命令!

0 本站下载 0 关注 更新于 1 年前

需要前置:Fabric API

最新 1.3.0 · 1.21.8 · Fabric

一键开服(送7天)

警告 !!! 1.3.0 版本的数据迁移已损坏 !!! 如果您已有 HOME Utilities 数据,请勿从 1.2.3 更新至 1.3.0!修复程序将在 1.3.0 版本中提供!

这是什么模组?

HOME Utilities 是一个服务端模组,为您的服务器添加了新指令! 该模组仅添加HOME(传送点)相关指令。

有哪些新指令?

列表如下:

  • sethome [home_name] : 将您的位置保存为传送点名称,如果该名称已存在则覆盖。
  • delhome [home_name] : 删除您列表中的传送点。
  • home [home_name] : 传送至您的传送点位置。
  • homes : 显示您的所有传送点列表。
  • sharehome [home_name] [player_name] : 与另一名玩家共享一个传送点。目标玩家需要点击消息将其添加到自己的列表中。
  • psethome [home_name] : 将您的位置保存为公开传送点名称,任何人均可访问;如果该名称已存在则覆盖。
  • pdelhome [home_name] : 仅当您拥有者身份时,删除该公开传送点。
  • phome [home_name] : 传送至该公开传送点的位置。
  • phomes : 显示所有公开传送点的列表。
  • homelanguage [language] : 更改模组为玩家使用的语言。
  • homeslimit [limit] : 默认情况下,玩家只能拥有 10 个传送点。此指令仅限操作员使用,可修改此限制。
  • phomeslimit [limit] : 默认情况下,玩家只能拥有 10 个公开传送点。此指令仅限操作员使用,可修改此限制。

翻译系统是如何工作的?

在 1.2.0+ 版本中,服务器启动时会自动生成一个新的配置文件 "home_translations.json",您可以按照以下格式添加翻译,以便玩家通过 /homelanguage 指令使用(此处我添加了一个法语翻译):

{
  "en": {
    "sethome_success": "Your home has been set!",
    "sethome_limit": "Error : You can only have %d homes.",
    "psethome_success": "Your public home has been set!",
    "psethome_limit": "Error : You can only have %d public homes.",
    "delhome_success": "Your home has been deleted!",
    "delhome_failure": "Error : The home don't exist.",
    "pdelhome_success": "Your public home has been deleted!",
    "pdelhome_failure": "Error : The public home don't exist or you're not the owner.",
    "home_success": "You have been teleported to your home!",
    "home_failure": "Error : The home don't exist.",
    "phome_success": "You have been teleported to the public home!",
    "phome_failure": "Error : The public home don't exist.",
    "homes_success": "Your homes (You can click on them to teleport):",
    "homes_failure": "Error : You don't have any home.",
    "phomes_success": "Public homes (You can click on them to teleport):",
    "phomes_failure": "Error : The server don't have any public home.",
    "sharehome_success": "%s wants to share a home with you! To accept it click on this message.",
    "sharehome_failure": "Error : The home don't exist.",
    "sharehome_yourself": "Error : You can't share with yourself.",
    "accepthome_success": "The home has been transferred! Run /homes to find it.",
    "accepthome_failure": "Error : The home don't exist.",
    "accepthome_empty": "Error : There is no home to accept.",
    "homelanguage_success": "HOME language changed!",
    "homelanguage_failure": "Error : The language provided is invalid.",
    "homeslimit_success": "The new limit of homes has been set!",
    "homeslimit_failure": "Error : Please provide a number that is not negative.",
    "phomeslimit_success": "The new limit of public homes has been set!",
    "phomeslimit_failure": "Error : Please provide a number that is not negative.",
    "version": "1.3"
  },
  "fr": {
    "sethome_success": "Votre home a été défini !",
    "sethome_limit": "Erreur : Vous ne pouvez avoir que %d homes.",
    "psethome_success": "Votre home public a été défini !",
    "psethome_limit": "Erreur : Vous ne pouvez avoir que %d homes publics.",
    "delhome_success": "Votre home a été supprimé !",
    "delhome_failure": "Erreur : Ce home n'existe pas.",
    "pdelhome_success": "Votre home public a été supprimé !",
    "pdelhome_failure": "Erreur : Ce home public n'existe pas ou vous n'en êtes pas le propriétaire.",
    "home_success": "Vous avez été téléporté à votre home !",
    "home_failure": "Erreur : Ce home n'existe pas.",
    "phome_success": "Vous avez été téléporté au home public !",
    "phome_failure": "Erreur : Ce home public n'existe pas.",
    "homes_success": "Vos homes (cliquez pour vous téléporter) :",
    "homes_failure": "Erreur : Vous n'avez aucun home.",
    "phomes_success": "Homes publics (cliquez pour vous téléporter) :",
    "phomes_failure": "Erreur : Le serveur n'a aucun home public.",
    "sharehome_success": "%s souhaite partager un home avec vous ! Cliquez sur ce message pour l'accepter.",
    "sharehome_failure": "Erreur : Ce home n'existe pas.",
    "sharehome_yourself": "Erreur : Vous ne pouvez pas partager avec vous-même.",
    "accepthome_success": "Le home a été transféré ! Utilisez /homes pour le trouver.",
    "accepthome_failure": "Erreur : Ce home n'existe pas.",
    "accepthome_empty": "Erreur : Aucun home à accepter.",
    "homelanguage_success": "Langue du HOME modifiée !",
    "homelanguage_failure": "Erreur : La langue fournie est invalide.",
    "homeslimit_success": "La nouvelle limite de homes a été définie !",
    "homeslimit_failure": "Erreur : Veuillez fournir un nombre positif.",
    "phomeslimit_success": "La nouvelle limite de homes publics a été définie !",
    "phomeslimit_failure": "Erreur : Veuillez fournir un nombre positif.",
    "version": "1.3"
  }
}

你是这个资源的作者?登录后可认领此资源。

评论 0

0.0
暂无评分
5 星
0
4 星
0
3 星
0
2 星
0
1 星
0
我的评分

登录后参与评分

还没有评论,来抢沙发吧

评论配图

相似资源