1
0
mirror of https://e.coding.net/circlecloud/ResExtras.git synced 2024-11-23 10:58:47 +00:00

修复汉化条目错误问题...

This commit is contained in:
502647092 2015-12-16 09:46:30 +08:00
parent ceecead23a
commit 7e4faac7df
2 changed files with 4 additions and 3 deletions

View File

@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>cn.citycraft</groupId> <groupId>cn.citycraft</groupId>
<artifactId>ResExtras</artifactId> <artifactId>ResExtras</artifactId>
<version>1.1</version> <version>1.1.1</version>
<name>ResExtras</name> <name>ResExtras</name>
<description>领地扩展</description> <description>领地扩展</description>
<build> <build>
@ -55,7 +55,7 @@
</build> </build>
<properties> <properties>
<jenkins.url>http://ci.citycraft.cn:8080</jenkins.url> <jenkins.url>http://ci.citycraft.cn:8080</jenkins.url>
<update.description>&amp;c汉化提示条目 优化检测流程...</update.description> <update.description>&amp;c原谅我太傻逼 已经修复汉化条目null的问题了...</update.description>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties> </properties>
<repositories> <repositories>

View File

@ -1,6 +1,7 @@
package cn.citycraft.ResExtras; package cn.citycraft.ResExtras;
import org.bukkit.Bukkit; import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.command.Command; import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor; import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender; import org.bukkit.command.CommandSender;
@ -72,7 +73,7 @@ public class ResExtras extends JavaPlugin implements CommandExecutor {
public static String pluginname; public static String pluginname;
public static void sendMessage(final CommandSender sender, final String path) { public static void sendMessage(final CommandSender sender, final String path) {
sender.sendMessage(pluginname + config.getMessage("§cMessage." + path)); sender.sendMessage(pluginname + ChatColor.RED + config.getMessage("Message." + path));
} }
@Override @Override