Fixed bug where desc for past-completed achievements was still showing
This commit is contained in:
parent
99951bc573
commit
17649ce36c
@ -72,10 +72,6 @@ public class Arcade extends JavaPlugin
|
||||
|
||||
String webServerAddress = getConfig().getString(WEB_CONFIG);
|
||||
|
||||
int andthecatisdog = 0;
|
||||
andthecatisdog += andthecatisdog;
|
||||
andthecatisdog = 5;
|
||||
|
||||
Logger.initialize(this);
|
||||
|
||||
//Static Modules
|
||||
|
@ -92,6 +92,8 @@ public class GameAchievementManager implements Listener
|
||||
|
||||
String progress = F.elem(C.cGreen + "+" + log.get(type).Amount);
|
||||
|
||||
boolean displayDesc = true;
|
||||
|
||||
//Completed Achievement
|
||||
if (data.getLevel() == type.getMaxLevel())
|
||||
{
|
||||
@ -114,6 +116,7 @@ public class GameAchievementManager implements Listener
|
||||
else
|
||||
{
|
||||
//Display nothing because already complete bro :O
|
||||
displayDesc = false;
|
||||
}
|
||||
}
|
||||
//Multi-Level Achievements
|
||||
@ -149,11 +152,12 @@ public class GameAchievementManager implements Listener
|
||||
}
|
||||
}
|
||||
|
||||
for (String desc : type.getDesc())
|
||||
{
|
||||
UtilPlayer.message(player, desc);
|
||||
out++;
|
||||
}
|
||||
if (displayDesc)
|
||||
for (String desc : type.getDesc())
|
||||
{
|
||||
UtilPlayer.message(player, desc);
|
||||
out++;
|
||||
}
|
||||
|
||||
|
||||
out++;
|
||||
|
Loading…
Reference in New Issue
Block a user