DeathMessages插件中,死亡消息中的生物名称全部是英文的
怎么把它改成中文的呢
怎么把它改成中文的呢
配置文件中可以修改的
发一下文件夹截屏
发一下文件夹截屏
settings里面有个可以自行汉化
PixelWorld 发表于 2023-1-11 11:39
settings里面有个可以自行汉化
我并没有在这个文件里看到生物的名字,怎么汉化?
Minecraft145 发表于 2023-1-11 11:45
我并没有在这个文件里看到生物的名字,怎么汉化?
你压缩发我我给你看看
PixelWorld 发表于 2023-1-11 11:46
你压缩发我我给你看看
- # DeathMessages by MrShawn
- #
- # Disable the default messages from minecraft
- Disable-Default-Messages: true
- # Add a prefix to all death messages? (Prefix from Messages.yml)
- Add-Prefix-To-All-Messages: true
- # Settings for specific hooks the plugins interact with
- Hooks:
- # If MythicMobs is found, enable the hook
- # Enable/Disable MythicMobs hook
- MythicMobs:
- Enabled: true
- # If WorldGuard is found, enable the hook
- # This creates custom flags for regions. These flags are set to ALLOW by default
- # Flags:
- # broadcast-deathmessage-player
- # broadcast-deathmessage-mobs
- # broadcast-deathmessage-natural
- # broadcast-deathmessage-tameable
- # Use: /rg flag <regionName> <customFlag> allow/deny
- # The above flags determine death message from being broadcasted if the pvp/pve is taking place in the region.
- WorldGuard:
- Enabled: true
- # If DiscordBotAPI (https://www.spigotmc.org/resources/discordbotapi.86518/) or DiscordSRV
- # (https://www.spigotmc.org/resources/discordsrv.18494/)is installed, and enabled here.
- # To get the Guild ID and Channel-IDs, you must have developer mode enabled in discord. Then, you will right-click the
- # guild and click on "Copy ID". Then, you will right-click the channel you want to send the messages to and again, click
- # "Copy ID". The format for the list of Channels is: "guild_ID:channel_ID"
- # Example: "218258614192450048:827286062147837621"
- # THE ABOVE EXAMPLE SHOULD NOT BE USED IN LIVE APPLICATIONS! DO NOT ATTEMPT TO USE IT.
- Discord:
- Enabled: false
- # Specify which channel certain death messages get sent.
- Channels:
- Player:
- Enabled: true
- Channels:
- - "218258614192450048:827286062147837621"
- Mob:
- Enabled: true
- Channels: []
- Natural:
- Enabled: true
- Channels: []
- Entity:
- Enabled: true
- Channels: []
- # If you wish to only have certain worlds with death message broadcast to discord, define them here
- World-Whitelist:
- Enabled: false
- Worlds:
- - test1
- - test2
- # If you run a bungee server that you would like to send death messages to other servers, enable this
- Bungee:
- Enabled: false
- # The server name that other servers will see
- Server-Name:
- # Should the plugin set the server name from the bungee config?
- Get-From-Bungee: false
- # Ignored if Get-From-Bungee is enabled.
- Display-Name: lobby
- Server-Groups:
- # If enabled, the messages will only send to specified servers you list in the Servers section.
- # If disabled, messages will send to all servers you have the plugin installed on.
- Enabled: false
- # Get the server names from your config.yml in bungee
- Servers:
- - lobby
- - survival
- # If enabled, user data will be saved. (Blacklist, and /dm toggle data)
- # If disabled, data wont be saved in UserData.yml
- Saved-User-Data: true
- # If enabled, weapon kills will default to a defined kill if the weapon does not have a custom display name
- Disable-Weapon-Kill-With-No-Custom-Name:
- Enabled: false
- #If enabled, weapons with default display names (white) will be overridden with the message color.
- # So if the ** is red, then if this is enabled, the weapon name will be red as well.
- # NOT WORKING YET, NOT WORKING YET, NOT WORKING YET, NOT WORKING YET, NOT WORKING YET, NOT WORKING YET,
- Allow-Message-Color-Override: true
- # If the weapon has enchantments and you still want the death type to still be Weapon, set this to false.
- # Even if the weapon name is still default.
- Ignore-Enchantments: true
- Source:
- Projectile:
- Default-To: Projectile-Unknown
- Weapon:
- Default-To: Melee
- # If enabled, if a player was pushed into the void by a killer, and void kill message is not defined, use melee death.
- # This option is ignored if Default-Natural-Death-Not-Defined is set to true.
- Default-Melee-Last-Damage-Not-Defined: true
- # If enabled, for example, if a player was pushed into the void by a killer,
- # and void kill message is not defined in the player section, natural death message will be used.
- Default-Natural-Death-Not-Defined: true
- # Set the listener call priority for death messages.
- # LOWEST, LOW, NORMAL, HIGH, HIGHEST are allowed
- # MONITOR is not support and is defaulted to HIGH
- Death-Listener-Priority: HIGH
- # If enabled, if mobs that have any specified characters from If-Contains, the default mob name will be displayed.
- Rename-Mobs:
- Enabled: true
- If-Contains: "♡♥❤■"
- # If enabled, mobs will always default to their entity name. Display names will always be ignored. (Besides players)
- Disable-Named-Mobs: false
- Expire-Last-Damage:
- # How long until the last mob that damaged a player expires? (Becomes a natural death cause)
- # Default: 7
- Expire-Player: 7
- # How long until the last player that damaged an entity expires (Cancels the deathmessage listener)
- # Default: 7
- Expire-Entity: 7
- # If enabled, death messages will only be sent to players in the same world the player died in.
- Per-World-Messages: false
- # Group worlds together to send messages to a group of worlds instead of messages per world.
- # Per-World-Messages must be set to true, otherwise, this setting is ignored.
- # World groups are unlimited, and the key names can be named whatever you want, they are ignored
- # and not used in the code.
- # If a world a player dies in is not specified, it will only broadcast to the world the player died in.
- World-Groups:
- 1:
- - world
- - world_nether
- - world_the_end
- # Worlds that death messages will never be sent to.
- # Regardless of any other settings, messages will never be sent on these worlds.
- # If a world listed below belongs in a world group. Still, the messages will never be sent to any world.
- Disabled-Worlds:
- - someDisabledWorld1
- - someOtherDisabledWorld
- Private-Messages:
- # All messages will still be sent to the console log no matter the setting.
- # Discord messages will be effected depending on if the below settings are changed.
- # Example: Setting Player to true will not send the message to discord.
- # The victim and the killer will only have the death message sent to them.
- Player: false
- # The victim will only have the death message sent to them.
- Mobs: false
- # The victim will only have the death message sent to them.
- Natural: false
- # The killer will only have the message sent to them.
- Tameable: false
- # Set the cooldown for player deaths to prevent spam
- # Cooldown time in seconds
- # Console messages ignore cooldowns and will still send to console
- # Default: 0 (disabled)
- Cooldown: 0
- # Custom Items
- # Add item display names here. If an item has the display name of something you provide here. Will be counted as
- # a Weapon Kill. Not a melee kill.
- # REGEX is required here.
- Custom-Item-Display-Names-Is-Weapon:
- - '&6SUPER\sCOOL\sGOLDEN\sAPPLE'
- - 'SICKNAME'
- # Any item materials you list here will return a weapon kill. Not a melee kill
- # Material names are listed here https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Material.html
- Custom-Item-Material-Is-Weapon:
- - 'ACACIA_FENCE'
本帖最后由 ZeroExact 于 2023-1-11 11:54 编辑
推荐高度自定义每一种生物击杀的提示,而非使用插件提供的%killer%变量
例如:
推荐高度自定义每一种生物击杀的提示,而非使用插件提供的%killer%变量
例如:

ZeroExact 发表于 2023-1-11 11:53
推荐高度自定义每一种生物击杀的提示,而非使用插件提供的%killer%变量例如:
可是这样的话如果生物被其他玩家用命名牌命名过,就无法显示名字了
本帖最后由 ZeroExact 于 2023-1-11 12:08 编辑
变量调用的名称应该是服务端核心提供的,也就是说你得去改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或同类插件的物品展示功能无法显示悬浮物品详情
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或同类插件的物品展示功能无法显示悬浮物品详情
确实楼上说的被毛病
你可以去找一些有前置插件的死亡插件怪物等东西会在插件的前置里
例如cmi 的死亡提示 生物的名字就可以在cmilib里找到汉化即可
你可以去找一些有前置插件的死亡插件怪物等东西会在插件的前置里
例如cmi 的死亡提示 生物的名字就可以在cmilib里找到汉化即可
ZeroExact 发表于 2023-1-11 11:58
变量调用的名称应该是服务端核心提供的,也就是说你得去改jar
以paper 1.18.2举例,语言文件在
服务端文件 ...
修改防火墙禁止下载文件,paper是不是就会跳过下载了
Minecraft145 发表于 2023-1-11 12:29
修改防火墙禁止下载文件,paper是不是就会跳过下载了
应该不会,会一直卡在下载
本帖最后由 Minecraft145 于 2023-1-11 19:23 编辑
而且如果原版生物还在生成时自带武器的话,使用的武器也会变成英文(顺便问一下,mc服务器选择高频cpu或者多核cpu各有什么优势,谢谢了)
ZeroExact 发表于 2023-1-11 15:27
应该不会,会一直卡在下载
而且如果原版生物还在生成时自带武器的话,使用的武器也会变成英文(顺便问一下,mc服务器选择高频cpu或者多核cpu各有什么优势,谢谢了)
Minecraft145 发表于 2023-1-11 18:59
用插件替换文本,会不会把玩家的聊天中的文本也给替换掉?
是只替换某些插件产生的文本还是替换一切服务 ...
会替换所有出现的,包括玩家的
Minecraft145 发表于 2023-1-11 19:03
而且如果原版生物还在生成时自带武器的话,使用的武器也会变成英文(顺便问一下,mc服务器选择高频cpu或者 ...
你把武器也替换就行了
有别的问题新发帖提问
ZeroExact 发表于 2023-1-11 22:03
会替换所有出现的,包括玩家的
那么把Paper的MD5也修改掉,是不是就能防止他自动下载文件了
Minecraft145 发表于 2023-1-16 10:26
那么把Paper的MD5也修改掉,是不是就能防止他自动下载文件了
MD5怎么修改?
Syrilo 发表于 2023-1-16 10:41
MD5怎么修改?
我正要问