• 欢迎来到Minecraft插件百科!
  • 对百科编辑一脸懵逼?帮助:快速入门带您快速熟悉百科编辑!
  • 因近日遭受攻击,百科现已限制编辑,有意编辑请加入插件百科企鹅群:223812289

“Magic/Messages and Languages”的版本间的差异

来自Minecraft插件百科
跳转至: 导航搜索
(创建页面,内容为“== Messages == The messages.yml config file can be used to change ''any'' of the in-game text in Magic. If you are looking to change one or two specific lines, sim…”)
 
 
第1行: 第1行:
== Messages ==
+
== 消息 ==
  
The messages.yml config file can be used to change ''any'' of the in-game text in Magic.
+
messages.yml 配置文件可以修改“任何”插件内文本
  
If you are looking to change one or two specific lines, simply open up plugins/Magic/defaults/messages.defaults.yml, then search for the text you want to change.
+
如果你只是想改一两行,请直接打开plugins/Magic/defaults/messages.defaults.yml,然后Ctrl+F搜索你需要的文本
  
Copy that one line to plugins/Magic/messages.yml and modify it how you wish. Make sure that it is still in the correct section.
+
译者注:Magic插件的messages.yml本身没有任何有效内容,玩家需要把自己想要改动的文本在这里写好插件再读取,否则就读取默认的消息文本
  
If you'd like to change a lot or all of the text, you may copy that entire file- but keep in mind that anything you have copied will override any future changes that may be made to the internal plugin defaults.
+
复制一行到plugins/Magic/messages.yml然后修改成你需要的内容。请确保修改后的位置仍然正确
  
== Localization ==
+
如果你想要修改很多内容或全部文本,你或许需要复制整个文件,而且请记住:你复制的内容将会覆盖任何以后对插件默认设置的更改,
  
If you wish to localize the entire plugin, you may copy plugins/Magic/defaults/messages.defaults.yml to plugins/Magic/messages.yml and start editing.
+
== 本地化 ==
  
== Built-in Localizations ==
+
如果你希望汉化整个插件,你或许需要复制copy plugins/Magic/defaults/messages.defaults.yml的内容到plugins/Magic/messages.yml 里后再开始编辑
  
There are several different languages built into the plugin that can be activated by putting a line like this in config.yml:
+
== 内置本地化 ==
  
<code>language: ES</code>
+
插件提供了一部分内置语言文件,只需要添加一行内容到config.yml:
  
See here for the available languages:
+
<code>language: CN</code>
 +
 
 +
在此处查看可用的语言:
  
 
https://github.com/elBukkit/MagicPlugin/tree/master/Magic/src/main/resources/examples/localizations
 
https://github.com/elBukkit/MagicPlugin/tree/master/Magic/src/main/resources/examples/localizations
  
This mostly only applies to the survival configs.
+
一般只适用于生存服的设置(译者注:指的是语言文件汉化的默认法术基本上是为生存服准备的,而见仁见智)

2021年6月6日 (日) 14:10的最新版本

消息

messages.yml 配置文件可以修改“任何”插件内文本

如果你只是想改一两行,请直接打开plugins/Magic/defaults/messages.defaults.yml,然后Ctrl+F搜索你需要的文本

译者注:Magic插件的messages.yml本身没有任何有效内容,玩家需要把自己想要改动的文本在这里写好插件再读取,否则就读取默认的消息文本

复制一行到plugins/Magic/messages.yml然后修改成你需要的内容。请确保修改后的位置仍然正确

如果你想要修改很多内容或全部文本,你或许需要复制整个文件,而且请记住:你复制的内容将会覆盖任何以后对插件默认设置的更改,

本地化

如果你希望汉化整个插件,你或许需要复制copy plugins/Magic/defaults/messages.defaults.yml的内容到plugins/Magic/messages.yml 里后再开始编辑

内置本地化

插件提供了一部分内置语言文件,只需要添加一行内容到config.yml:

language: CN

在此处查看可用的语言:

https://github.com/elBukkit/MagicPlugin/tree/master/Magic/src/main/resources/examples/localizations

一般只适用于生存服的设置(译者注:指的是语言文件汉化的默认法术基本上是为生存服准备的,而见仁见智)