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);
|
String webServerAddress = getConfig().getString(WEB_CONFIG);
|
||||||
|
|
||||||
int andthecatisdog = 0;
|
|
||||||
andthecatisdog += andthecatisdog;
|
|
||||||
andthecatisdog = 5;
|
|
||||||
|
|
||||||
Logger.initialize(this);
|
Logger.initialize(this);
|
||||||
|
|
||||||
//Static Modules
|
//Static Modules
|
||||||
|
@ -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++;
|
||||||
|
Loading…
Reference in New Issue
Block a user