Extra events (#630)

* eventype player join

* playerjoin event

* player leave

* player leave event

* typo

* remove

* leave fix
This commit is contained in:
J-VdS
2019-09-03 01:37:38 +02:00
committed by Anuken
parent e640042e5d
commit ef0b56eb22
2 changed files with 24 additions and 3 deletions

View File

@@ -5,6 +5,7 @@ import io.anuke.mindustry.entities.traits.BuilderTrait;
import io.anuke.mindustry.entities.type.Unit;
import io.anuke.mindustry.type.Zone;
import io.anuke.mindustry.world.Tile;
import io.anuke.mindustry.entities.type.Player;
public class EventType{
@@ -184,5 +185,22 @@ public class EventType{
public static class ResizeEvent{
}
public static class PlayerJoin{
public final Player player;
public PlayerJoin(Player player){
this.player = player;
}
}
public static class PlayerLeave{
public final Player player;
public PlayerLeave(Player player){
this.player = player;
}
}
}