CPFix
CPFix 旨在修复一些与 Windows 控制台以及 Minecraft 客户端中损坏的 LWJGL 版本相关的代码页问题。它最初是为了解决俄语(西里尔字母)相关问题而创建的,但你可以轻松地将此插件配置为任何代码页和字符集(由 LWJGL 导致的损坏问题)。
俄语版说明 | Описание на русском языке
Minecraft Font replacement
如果你不喜欢默认的“细体”Unicode 字体,可以尝试资源包 Minecraft Font (PC)。
Features
- 修复聊天和游戏内命令中的字符
- 修复告示牌上的字符。包括在 CPFix 安装之前创建的告示牌(你只需点击带有错误代码页的告示牌即可修复)
- 修复书籍(作者、标题、页码)中的字符
- 修复物品名称和描述中的字符(默认禁用)
- 当玩家在聊天或告示牌中输入错误字符时通知玩家
- 对输出(控制台、服务器日志)和输入进行重新编码——这对 Windows 用户非常有用。

Why do I want it?
如果你的玩家有时使用俄语在聊天或告示牌中输入内容,那么此插件是必需的,以便为玩家提供与 UTF-8 的完全兼容性。
Commands:
- /cpfix — 显示当前配置
- /cpfix reload — 重新加载配置
Configuration
要配置插件,你必须编辑 config.yml 文件并输入 /cpfix reload 以从文件中重新加载配置:
general:
# Find new of plugin version at BukkitDev
check-updates: true
# Language (russian - is default)
language: russian
# Save current language to a file
language-save: false
code-page:
# Enable (true) recoding chat message
chat-fix-enable: true
# Enable (true) recoding commands
command-fix-enable: true
# Enable (true) recoding signs
sign-fix-enable: true
# Enable (true) recoding books
book-fix-enable: true
# Enable (true) recoding item's name and lore (Disabled by default)
lore-fix-enable: false
# Inform player if he types wrong character at chat or at sign (only once :))
inform-player: true
# Recode output console and server.log
output-recode:
console:
enable: true
code-page: CP866
server-log:
enable: true
code-page: CP866
# Recode input (console only)
input-recode:
enable: true
code-page: CP866
character.txt 文件包含包含“错误”字符集和“正确”字符集的字符集。
如果输入的邮件包含任何错误符号(位于第一行的字符),它将被替换为相同位置的“正确”字符集中的字符。
如果你不需要纠正俄语符号,而是打算将任何符号替换为其他符号——你可以使用此插件来执行此操作。只需配置这些字符集。
字符的第三行是一个白名单——允许在聊天中输入的字符。如果你的玩家使用其他代码页,未知字符将被替换为“_”符号。
默认的 character.txt:
ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ¸¨
АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюяёЁ
!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_¸abcdefghijklmnopqrstuvwxyz{|}~АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЫЭЮЯабвгдеёжзийклмнопрстуфхцчшщъыьэюя
Permissions
- cpfix.sign - 拥有此权限的玩家可以点击告示牌以修复上面的文本
- cpfix.config - 允许使用命令并接收插件更新信息
Metrics and update checker
CPFix 包含两个使用你的服务器互联网连接的功能。第一个是 Metrics,用于收集有关插件的信息(插件版本、Java 版本等),第二个是更新检查器(需要定期在 dev.bukkit.org 上检查 CPFix 的新版本)。如果你不喜欢这些功能,可以轻松禁用它们。要禁用更新检查器,你需要在 config.yml 中将参数 "version-check" 设置为 "false"。了解更多关于 Metrics 的信息并学习如何关闭它,你可以阅读 这里。
CPFix
CPFix is created to fix some code page problems, bounded to Windows console and broken version of LWJGL included to Minecraft Client. It create to resolve Russian (Cyrillic) issues, but you can easy configure this plugin to any code page and characters set (broken by LWJGL).
Russian version of this description | Описание на русском языке
Minecraft Font replacement
If you did not like default "thin" unicode font you cant try resourcepack Minecraft Font (PC).
Features
- Fix characters in chat and in in-game commands
- Fix characters at signs. Including signs, that was created before CPFix installation (you just need to click sign with wrong codepage and it will be fixed)
- Fix characters at books (Author, Title, Pages)
- Fix characters at items' names and lore (disabled by default)
- Inform player when he typing wrong character in chat or at sign
- Recode output (console, server log) and input - very useful for Windows users.

Why do I want it?
If your players sometimes typing at chat or at signs using Russian language this plugin is required to provide players full compatibility with UTF-8.
Commands:
- /cpfix — Show current configuration
- /cpfix reload — Reloads configuration
Configuration
To configure plugin, you must edit config.yml file and type /cpfix reload to reload configuration from the file:
general:
# Find new of plugin version at BukkitDev
check-updates: true
# Language (russian - is default)
language: russian
# Save current language to a file
language-save: false
code-page:
# Enable (true) recoding chat message
chat-fix-enable: true
# Enable (true) recoding commands
command-fix-enable: true
# Enable (true) recoding signs
sign-fix-enable: true
# Enable (true) recoding books
book-fix-enable: true
# Enable (true) recoding item's name and lore (Disabled by default)
lore-fix-enable: false
# Inform player if he types wrong character at chat or at sign (only once :))
inform-player: true
# Recode output console and server.log
output-recode:
console:
enable: true
code-page: CP866
server-log:
enable: true
code-page: CP866
# Recode input (console only)
input-recode:
enable: true
code-page: CP866
character.txt file includes charsets containing "wrong" character set and "right" characters set.
If typed message contains any wrong symbol (character located at the first line) it will be replaced with character located in "right" character set (second line) in same position.
If you don't need to correct Russian symbols, but you going to replace any symbol with another - you use this plugin to do it. Just configure this characters sets.
The third line of characters is a white-list — characters allowed to type in chat. If your players use another code-page, unknown characters will be replaced with "_" symbol.
Default character.txt:
ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ¸¨
АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюяёЁ
!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_¸abcdefghijklmnopqrstuvwxyz{|}~АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЫЭЮЯабвгдеёжзийклмнопрстуфхцчшщъыьэюя
Permissions
- cpfix.sign - Player with this permission can click signs to fix text located on it
- cpfix.config - Allows to use commands and receive plugin update information
Metrics and update checker
CPFix includes two features that use your server internet connection. First one is Metrics, using to collect information about plugin (versions of plugin, of Java.. etc.) and second is update checker (required to periodical check new version of CPFix at dev.bukkit.org). If you don't like this features you can easy disable it. To disable update checker you need to set parameter "version-check" to "false" in config.yml. Obtain more information about Metrics and learn how to switch off it, you can read here.
评论 0
登录后参与评分
还没有评论,来抢沙发吧