Minecraft145
DeathMessages插件中,死亡消息中的生物名称全部是英文的
怎么把它改成中文的呢

PixelWorld
配置文件中可以修改的
发一下文件夹截屏

Minecraft145
PixelWorld 发表于 2023-1-11 11:21
配置文件中可以修改的
发一下文件夹截屏



PixelWorld

settings里面有个可以自行汉化

Minecraft145
PixelWorld 发表于 2023-1-11 11:39
settings里面有个可以自行汉化

我并没有在这个文件里看到生物的名字,怎么汉化?

PixelWorld
Minecraft145 发表于 2023-1-11 11:45
我并没有在这个文件里看到生物的名字,怎么汉化?

你压缩发我我给你看看

Minecraft145
PixelWorld 发表于 2023-1-11 11:46
你压缩发我我给你看看
  1. # DeathMessages by MrShawn
  2. #
  3. # Disable the default messages from minecraft
  4. Disable-Default-Messages: true

  5. # Add a prefix to all death messages? (Prefix from Messages.yml)
  6. Add-Prefix-To-All-Messages: true

  7. # Settings for specific hooks the plugins interact with
  8. Hooks:
  9.   # If MythicMobs is found, enable the hook
  10.   # Enable/Disable MythicMobs hook
  11.   MythicMobs:
  12.     Enabled: true

  13.   # If WorldGuard is found, enable the hook
  14.   # This creates custom flags for regions. These flags are set to ALLOW by default
  15.   # Flags:
  16.   #   broadcast-deathmessage-player
  17.   #   broadcast-deathmessage-mobs
  18.   #   broadcast-deathmessage-natural
  19.   #   broadcast-deathmessage-tameable
  20.   # Use: /rg flag <regionName> <customFlag> allow/deny
  21.   # The above flags determine death message from being broadcasted if the pvp/pve is taking place in the region.
  22.   WorldGuard:
  23.     Enabled: true

  24.   # If DiscordBotAPI (https://www.spigotmc.org/resources/discordbotapi.86518/) or DiscordSRV
  25.   # (https://www.spigotmc.org/resources/discordsrv.18494/)is installed, and enabled here.
  26.   # To get the Guild ID and Channel-IDs, you must have developer mode enabled in discord. Then, you will right-click the
  27.   # guild and click on "Copy ID". Then, you will right-click the channel you want to send the messages to and again, click
  28.   # "Copy ID". The format for the list of Channels is: "guild_ID:channel_ID"
  29.   # Example: "218258614192450048:827286062147837621"
  30.   # THE ABOVE EXAMPLE SHOULD NOT BE USED IN LIVE APPLICATIONS! DO NOT ATTEMPT TO USE IT.
  31.   Discord:
  32.     Enabled: false
  33.     # Specify which channel certain death messages get sent.
  34.     Channels:
  35.       Player:
  36.         Enabled: true
  37.         Channels:
  38.           - "218258614192450048:827286062147837621"
  39.       Mob:
  40.         Enabled: true
  41.         Channels: []
  42.       Natural:
  43.         Enabled: true
  44.         Channels: []
  45.       Entity:
  46.         Enabled: true
  47.         Channels: []
  48.     # If you wish to only have certain worlds with death message broadcast to discord, define them here
  49.     World-Whitelist:
  50.       Enabled: false
  51.       Worlds:
  52.         - test1
  53.         - test2

  54.   # If you run a bungee server that you would like to send death messages to other servers, enable this
  55.   Bungee:
  56.     Enabled: false
  57.     # The server name that other servers will see
  58.     Server-Name:
  59.       # Should the plugin set the server name from the bungee config?
  60.       Get-From-Bungee: false
  61.       # Ignored if Get-From-Bungee is enabled.
  62.       Display-Name: lobby
  63.     Server-Groups:
  64.       # If enabled, the messages will only send to specified servers you list in the Servers section.
  65.       # If disabled, messages will send to all servers you have the plugin installed on.
  66.       Enabled: false
  67.       # Get the server names from your config.yml in bungee
  68.       Servers:
  69.         - lobby
  70.         - survival


  71. # If enabled, user data will be saved. (Blacklist, and /dm toggle data)
  72. # If disabled, data wont be saved in UserData.yml
  73. Saved-User-Data: true

  74. # If enabled, weapon kills will default to a defined kill if the weapon does not have a custom display name
  75. Disable-Weapon-Kill-With-No-Custom-Name:
  76.   Enabled: false

  77.   #If enabled, weapons with default display names (white) will be overridden with the message color.
  78.   # So if the ** is red, then if this is enabled, the weapon name will be red as well.
  79.   # NOT WORKING YET, NOT WORKING YET, NOT WORKING YET, NOT WORKING YET, NOT WORKING YET, NOT WORKING YET,
  80.   Allow-Message-Color-Override: true

  81.   # If the weapon has enchantments and you still want the death type to still be Weapon, set this to false.
  82.   # Even if the weapon name is still default.
  83.   Ignore-Enchantments: true
  84.   Source:
  85.     Projectile:
  86.       Default-To: Projectile-Unknown
  87.     Weapon:
  88.       Default-To: Melee

  89. # If enabled, if a player was pushed into the void by a killer, and void kill message is not defined, use melee death.
  90. # This option is ignored if Default-Natural-Death-Not-Defined is set to true.
  91. Default-Melee-Last-Damage-Not-Defined: true

  92. # If enabled, for example, if a player was pushed into the void by a killer,
  93. # and void kill message is not defined in the player section, natural death message will be used.
  94. Default-Natural-Death-Not-Defined: true

  95. # Set the listener call priority for death messages.
  96. # LOWEST, LOW, NORMAL, HIGH, HIGHEST are allowed
  97. # MONITOR is not support and is defaulted to HIGH
  98. Death-Listener-Priority: HIGH

  99. # If enabled, if mobs that have any specified characters from If-Contains, the default mob name will be displayed.
  100. Rename-Mobs:
  101.   Enabled: true
  102.   If-Contains: "♡♥❤■"

  103. # If enabled, mobs will always default to their entity name. Display names will always be ignored. (Besides players)
  104. Disable-Named-Mobs: false

  105. Expire-Last-Damage:
  106.   # How long until the last mob that damaged a player expires? (Becomes a natural death cause)
  107.   # Default: 7
  108.   Expire-Player: 7
  109.   # How long until the last player that damaged an entity expires (Cancels the deathmessage listener)
  110.   # Default: 7
  111.   Expire-Entity: 7

  112. # If enabled, death messages will only be sent to players in the same world the player died in.
  113. Per-World-Messages: false

  114. # Group worlds together to send messages to a group of worlds instead of messages per world.
  115. # Per-World-Messages must be set to true, otherwise, this setting is ignored.
  116. # World groups are unlimited, and the key names can be named whatever you want, they are ignored
  117. # and not used in the code.
  118. # If a world a player dies in is not specified, it will only broadcast to the world the player died in.
  119. World-Groups:
  120.   1:
  121.     - world
  122.     - world_nether
  123.     - world_the_end

  124. # Worlds that death messages will never be sent to.
  125. # Regardless of any other settings, messages will never be sent on these worlds.
  126. # If a world listed below belongs in a world group. Still, the messages will never be sent to any world.
  127. Disabled-Worlds:
  128.   - someDisabledWorld1
  129.   - someOtherDisabledWorld

  130. Private-Messages:
  131.   # All messages will still be sent to the console log no matter the setting.
  132.   # Discord messages will be effected depending on if the below settings are changed.
  133.   # Example: Setting Player to true will not send the message to discord.
  134.   # The victim and the killer will only have the death message sent to them.
  135.   Player: false
  136.   # The victim will only have the death message sent to them.
  137.   Mobs: false
  138.   # The victim will only have the death message sent to them.
  139.   Natural: false
  140.   # The killer will only have the message sent to them.
  141.   Tameable: false

  142. # Set the cooldown for player deaths to prevent spam
  143. # Cooldown time in seconds
  144. # Console messages ignore cooldowns and will still send to console
  145. # Default: 0 (disabled)
  146. Cooldown: 0

  147. # Custom Items

  148. # Add item display names here. If an item has the display name of something you provide here. Will be counted as
  149. # a Weapon Kill. Not a melee kill.
  150. # REGEX is required here.
  151. Custom-Item-Display-Names-Is-Weapon:
  152.   - '&6SUPER\sCOOL\sGOLDEN\sAPPLE'
  153.   - 'SICKNAME'

  154. # Any item materials you list here will return a weapon kill. Not a melee kill
  155. # Material names are listed here https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html
  156. Custom-Item-Material-Is-Weapon:
  157.   - 'ACACIA_FENCE'
复制代码

ZeroExact
本帖最后由 ZeroExact 于 2023-1-11 11:54 编辑

推荐高度自定义每一种生物击杀的提示,而非使用插件提供的%killer%变量

例如:




Minecraft145
ZeroExact 发表于 2023-1-11 11:53
推荐高度自定义每一种生物击杀的提示,而非使用插件提供的%killer%变量例如:

可是这样的话如果生物被其他玩家用命名牌命名过,就无法显示名字了

PixelWorld
Minecraft145 发表于 2023-1-11 11:55
可是这样的话如果生物被其他玩家用命名牌命名过,就无法显示名字了

你把所有的都压缩发我
或者他有什么前置吗

ZeroExact
本帖最后由 ZeroExact 于 2023-1-11 12:08 编辑
Minecraft145 发表于 2023-1-11 11:55
可是这样的话如果生物被其他玩家用命名牌命名过,就无法显示名字了

变量调用的名称应该是服务端核心提供的,也就是说你得去改jar
以paper 1.18.2举例,语言文件在
服务端文件夹/cache/mojang_1.18.2.jar/META-INF/version/server-1.18.2.jar/assets/minecraft/lang/en_us.json


同样的还是paper,修改cache内mojang_1.18.2.jar文件会导致md5变化,paper在开服的时候会重新下载这个文件,导致覆盖汉化,无法修改

推荐使用插件来替换文本
[信息|管理]ProtocolStringReplacer——高效地修改各处显示的字符串[1.8-1.19]

额外提一嘴,若使用插件替换文本,会导致TrChat或同类插件的物品展示功能无法显示悬浮物品详情

PixelWorld
确实楼上说的被毛病
你可以去找一些有前置插件的死亡插件怪物等东西会在插件的前置里
例如cmi 的死亡提示 生物的名字就可以在cmilib里找到汉化即可

Minecraft145
ZeroExact 发表于 2023-1-11 11:58
变量调用的名称应该是服务端核心提供的,也就是说你得去改jar
以paper 1.18.2举例,语言文件在
服务端文件 ...

修改防火墙禁止下载文件,paper是不是就会跳过下载了

ZeroExact
Minecraft145 发表于 2023-1-11 12:29
修改防火墙禁止下载文件,paper是不是就会跳过下载了

应该不会,会一直卡在下载

Minecraft145
ZeroExact 发表于 2023-1-11 15:27
应该不会,会一直卡在下载

用插件替换文本,会不会把玩家的聊天中的文本也给替换掉?
是只替换某些插件产生的文本还是替换一切服务器内文本

Minecraft145
本帖最后由 Minecraft145 于 2023-1-11 19:23 编辑
ZeroExact 发表于 2023-1-11 15:27
应该不会,会一直卡在下载

而且如果原版生物还在生成时自带武器的话,使用的武器也会变成英文(顺便问一下,mc服务器选择高频cpu或者多核cpu各有什么优势,谢谢了)

ZeroExact
Minecraft145 发表于 2023-1-11 18:59
用插件替换文本,会不会把玩家的聊天中的文本也给替换掉?
是只替换某些插件产生的文本还是替换一切服务 ...

会替换所有出现的,包括玩家的

ZeroExact
Minecraft145 发表于 2023-1-11 19:03
而且如果原版生物还在生成时自带武器的话,使用的武器也会变成英文(顺便问一下,mc服务器选择高频cpu或者 ...

你把武器也替换就行了
有别的问题新发帖提问

Minecraft145
ZeroExact 发表于 2023-1-11 22:03
你把武器也替换就行了
有别的问题新发帖提问

这样要替换的文本就太多了会影响其他插件

Minecraft145
ZeroExact 发表于 2023-1-11 22:03
会替换所有出现的,包括玩家的

那么把Paper的MD5也修改掉,是不是就能防止他自动下载文件了

Syrilo
Minecraft145 发表于 2023-1-16 10:26
那么把Paper的MD5也修改掉,是不是就能防止他自动下载文件了

MD5怎么修改?

Minecraft145

我正要问

第一页 上一页 下一页 最后一页