Working 1.0.0 version. For latest PocketMine-MP master, uses new Event API