Fixed bug where desc for past-completed achievements was still showing

This commit is contained in:
Chiss 2014-08-26 21:51:59 +10:00
parent 99951bc573
commit 17649ce36c
2 changed files with 9 additions and 9 deletions

View File

@ -72,10 +72,6 @@ public class Arcade extends JavaPlugin
String webServerAddress = getConfig().getString(WEB_CONFIG); String webServerAddress = getConfig().getString(WEB_CONFIG);
int andthecatisdog = 0;
andthecatisdog += andthecatisdog;
andthecatisdog = 5;
Logger.initialize(this); Logger.initialize(this);
//Static Modules //Static Modules

View File

@ -92,6 +92,8 @@ public class GameAchievementManager implements Listener
String progress = F.elem(C.cGreen + "+" + log.get(type).Amount); String progress = F.elem(C.cGreen + "+" + log.get(type).Amount);
boolean displayDesc = true;
//Completed Achievement //Completed Achievement
if (data.getLevel() == type.getMaxLevel()) if (data.getLevel() == type.getMaxLevel())
{ {
@ -114,6 +116,7 @@ public class GameAchievementManager implements Listener
else else
{ {
//Display nothing because already complete bro :O //Display nothing because already complete bro :O
displayDesc = false;
} }
} }
//Multi-Level Achievements //Multi-Level Achievements
@ -149,11 +152,12 @@ public class GameAchievementManager implements Listener
} }
} }
for (String desc : type.getDesc()) if (displayDesc)
{ for (String desc : type.getDesc())
UtilPlayer.message(player, desc); {
out++; UtilPlayer.message(player, desc);
} out++;
}
out++; out++;