Correction README

Saut de ligne manquant
This commit is contained in:
leomelki 2020-03-18 23:57:35 +01:00
parent ddfd46d645
commit 0e4f6c6111
3 changed files with 8 additions and 4 deletions

View file

@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>fr.leomelki</groupId> <groupId>fr.leomelki</groupId>
<artifactId>LoupGarou</artifactId> <artifactId>LoupGarou</artifactId>
<version>0.0.1-SNAPSHOT</version> <version>1.0.0</version>
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

View file

@ -69,6 +69,9 @@ import lombok.Getter;
import lombok.Setter; import lombok.Setter;
public class LGGame implements Listener{ public class LGGame implements Listener{
private static boolean autoStart = false;
@Getter private final SecureRandom random = new SecureRandom(); @Getter private final SecureRandom random = new SecureRandom();
@Getter private final int maxPlayers; @Getter private final int maxPlayers;
@Getter private ArrayList<LGPlayer> inGame = new ArrayList<LGPlayer>(); @Getter private ArrayList<LGPlayer> inGame = new ArrayList<LGPlayer>();
@ -189,7 +192,6 @@ public class LGGame implements Listener{
deaths.put(event.getReason(), player); deaths.put(event.getReason(), player);
} }
} }
@SuppressWarnings("deprecation") @SuppressWarnings("deprecation")
public boolean tryToJoin(LGPlayer lgp) { public boolean tryToJoin(LGPlayer lgp) {
if(ended)return false; if(ended)return false;
@ -231,7 +233,9 @@ public class LGGame implements Listener{
obj.sendPacket(lgp.getPlayer()); obj.sendPacket(lgp.getPlayer());
Bukkit.getPluginManager().callEvent(new LGGameJoinEvent(this, lgp)); Bukkit.getPluginManager().callEvent(new LGGameJoinEvent(this, lgp));
//updateStart(); //AutoStart
if(autoStart)
updateStart();
return true; return true;
} }
return false; return false;