mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-28 13:36:33 +01:00
Create a DGlobalPlayer on DPlayers initialization. Resolves #43
This commit is contained in:
parent
383e4b6e61
commit
3c08691866
2
pom.xml
2
pom.xml
@ -2,7 +2,7 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>io.github.dre2n</groupId>
|
<groupId>io.github.dre2n</groupId>
|
||||||
<artifactId>dungeonsxl</artifactId>
|
<artifactId>dungeonsxl</artifactId>
|
||||||
<version>0.11-SNAPSHOT-29</version>
|
<version>0.11-SNAPSHOT</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<name>DungeonsXL</name>
|
<name>DungeonsXL</name>
|
||||||
<url>https://dre2n.github.io</url>
|
<url>https://dre2n.github.io</url>
|
||||||
|
@ -29,6 +29,12 @@ public class DPlayers {
|
|||||||
private List<DGlobalPlayer> dGlobalPlayers = new CopyOnWriteArrayList<>();
|
private List<DGlobalPlayer> dGlobalPlayers = new CopyOnWriteArrayList<>();
|
||||||
private List<DSavePlayer> dSavePlayers = new CopyOnWriteArrayList<>();
|
private List<DSavePlayer> dSavePlayers = new CopyOnWriteArrayList<>();
|
||||||
|
|
||||||
|
public DPlayers() {
|
||||||
|
for (Player player : Bukkit.getOnlinePlayers()) {
|
||||||
|
new DGlobalPlayer(player);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return the DGlobalPlayer which represents the player
|
* @return the DGlobalPlayer which represents the player
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user