Extra events (#630)
* eventype player join * playerjoin event * player leave * player leave event * typo * remove * leave fix
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user