1
0
mirror of https://e.coding.net/circlecloud/PvPTitles.git synced 2024-12-21 15:28:46 +00:00

修复玩家点数小于1时可以刷分的BUG...

Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
502647092 2016-01-09 08:44:13 +08:00
parent e1d7d9ccae
commit 13c94b14dc

View File

@ -87,7 +87,7 @@ public class HandlePlayerPrefix implements Listener {
fame++;
player.sendMessage(ChatColor.GREEN + "你击杀了 " + killed + " 获得一点 " + tag + ".");
this.databaseHandler.LoadPlayerData(player.getName());
if (killedpoint == 1) {
if (killedpoint <= 0) {
player.sendMessage(ChatColor.RED + killed + " 已经是穷光蛋了 无法获得任何点数.");
} else {
player.sendMessage(ChatColor.GREEN + "你击杀了 " + killed + " 获得了点数1点(可兑换物品).");