while trou
This commit is contained in:
parent
4c74873c65
commit
e70073b7fe
2 changed files with 11 additions and 7 deletions
|
|
@ -74,8 +74,7 @@ public class Program {
|
|||
Unit.getUnits().add(citizen1);
|
||||
Unit.getUnits().add(citizen2);
|
||||
|
||||
StatisticsResponse statistics = Basics.getStatistics();
|
||||
logger.debug(statistics.toString());
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
@ -99,9 +98,15 @@ public class Program {
|
|||
|
||||
// timoutheou
|
||||
while (true) {
|
||||
StatisticsResponse statistics = Basics.getStatistics();
|
||||
logger.debug(statistics.toString());
|
||||
for (var player : statistics.players) {
|
||||
if (player.name == login || !player.name.contains("brainkel")) {
|
||||
continue;
|
||||
|
||||
if (player.name != login && player.name.contains("brainkel")) {
|
||||
citizen1.sendMessage(player.name, "Nicole");
|
||||
citizen1.sendMessage(player.name, "Ouvre");
|
||||
citizen1.sendMessage(player.name, "MAIS MOI JE VEUX FAIRE L'AMOUUUUR");
|
||||
citizen2.fetchMessages();
|
||||
}
|
||||
// citizen1.sendMessage(player.name, "Nicole");
|
||||
// citizen2.sendMessage(player.name,"Ouvre");
|
||||
|
|
@ -110,8 +115,7 @@ public class Program {
|
|||
// citizen1.sendMessage(player.name, "<3");
|
||||
// citizen2.fetchMessages();
|
||||
|
||||
citizen1.sendMessage(player.name, "MAIS MOI JE VEUX FAIRE L'AMOUUUUR");
|
||||
citizen2.fetchMessages();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ public abstract class Unit {
|
|||
logger.warn("Invalid report received: null value");
|
||||
return false;
|
||||
}
|
||||
logger.debug("Got report: " + lastReport);
|
||||
// logger.debug("Got report: " + lastReport);
|
||||
idle = true;
|
||||
|
||||
return lastReport.errorCode != null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue